bootiful-media-mogul / mogul-service

0 stars 1 forks source link

Here's the grammar-checked and spell-checked version of your text:

README

See the project README for what we're all about.

TODO

Useful Queries

If you need any more adjustments or additions, feel free to ask!


select *
from managed_file mf
where id not in (select pid
                 from (select p.produced_graphic as pid
                       from podcast_episode p
                       union
                       select p.graphic as pid
                       from podcast_episode p
                       union
                       select pe.produced_audio as pid
                       from podcast_episode pe
                       union
                       select pes.produced_segment_audio_managed_file as pid
                       from podcast_episode pe,
                            podcast_episode_segment pes
                       where pe.id = pes.podcast_episode 
                       UNION
                       select pes.segment_audio_managed_file  as pid
                       from podcast_episode pe,
                            podcast_episode_segment pes
                       where pe.id = pes.podcast_episode )
                 order by pid);

Google Cloud SQL

I'm using Google Cloud's Cloud SQL for PostgreSQL. It's pretty neat, but it has some weird nuances around how to connect to it. They almost don't want you to connect to it. I set it up with both a private and a public IP. If you want to connect to it locally use prod_db_2.sh. It's using the public IP. However, for production purposes, I need to use the private IP. I also had to add the netowkr