dougal / acts_as_indexed

Acts As Indexed is a plugin which provides a pain-free way to add fulltext search to your Ruby on Rails app
http://douglasfshearer.com/blog/rails-plugin-acts_as_indexed
MIT License
211 stars 49 forks source link

README ... Heroku #29

Closed timscott closed 11 years ago

timscott commented 12 years ago

The docs say that acts_as_indexed "supports Heroku." This is misleading and should be clarified.

https://devcenter.heroku.com/articles/read-only-filesystem

According to the Heroku, a file written to tmp is guaranteed no longer than the duration of a single request. In practice perhaps files live much longer; however, this should be explained. Also, it might be so that acts_as_indexed will try to rebuild indexes automatically, but my experience is, it will eventually fail, and there is no obvious way to manually repair it.

I should add that acts_as_indexed is pure awesome in terms of ease of use an intuitive and powerful design. However, in my opinion it's a bad choice on Heroku, event as a "starter" solution. Sucks that Heroku does not provide some limited durable file storage as part of the base plan.

dougal commented 12 years ago

Hi Tim.

Thanks for looking into this more. It seems that Heroku have made a change to the dyno lifecycle that is non-optimal for AAI use as you say. I'll discuss with other people and look at changing the docs.

Cheers.

D.

Douglas F Shearer http://douglasfshearer.com

On Wednesday, 9 May 2012 at 04:55, Tim Scott wrote:

The docs say that acts_as_indexed "supports Heroku." This is misleading and should be clarified.

https://devcenter.heroku.com/articles/read-only-filesystem

According to the Heroku, a file written to tmp is guaranteed no longer than the duration of a single request. In practice perhaps files live much longer; however, this should be explained. Also, it might be so that acts_as_indexed will try to rebuild indexes automatically, but my experience is, it will eventually fail, and there is no obvious way to manually repair it.

I should add that acts_as_indexed is pure awesome in terms of ease of use an intuitive and powerful design. However, in my opinion it's a bad choice on Heroku, event as a "starter" solution. Sucks that Heroku does not provide some limited durable file storage as part of the base plan.


Reply to this email directly or view it on GitHub: https://github.com/dougal/acts_as_indexed/issues/29

dougal commented 11 years ago

Hi Tim.

I've updated the Heroku documentation in the Readme to include the above link.

Thanks.