Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

My RoR app has a Vendor class which has a related_software and description attribute. related_software is stored into the postgresql database as an array.

I'm using the pg gem for searching the vendor class. The first problem was that the search query was incredibly slow. I thought this was due to lack of indexing, so I created a migration as follows: add_index(:vendors, :related_software, :using => 'gin')

This, however, did not affect the load time at all. I am not strong with database tinkering, what am I doing wrong here?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.