Postgresql is loading too slow

In my Rails app, I am using a d3 map where you click on a neighborhood and using backbone.js a list of ghost stories related to the neighborhood shows up. However, it is taking forever for the stories to load from the database, resulting in a floating blank div for an embarrassingly long time. How do I make the stories load faster from the database?


(If it helps, here is my site:


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.