#175 ✓resolved
Will Glynn

Sunspot gem is large

Reported by Will Glynn | March 29th, 2011 @ 09:56 AM

The Sunspot gem packs the Solr WAR+JARs into itself for convenience. I like this feature -- on my development machines. In my production environment, though, it's a drawback.

Heroku takes all my app code and gem dependencies, tars them up, and distributes the tarball to their cloud of app servers. As such, adding "gem 'sunspot'" to my Gemfile pads the compiled application with 10 MB of stuff that never gets used, increasing the startup time of web server processes, workers, and rake tasks alike.

I think there should be a way to disable this. Any solution needs to be contained to the gem installation process -- deleting the files afterwards won't work, since by that time, the damage is already done. (Plus, it's probably read-only anyway.) One rather drastic concept: split sunspot into sunspot-core and sunspot-java, and make a new sunspot gem that does nothing but depend on both?

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Awesome Solr interaction for Ruby

People watching this ticket