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
-

mat January 28th, 2012 @ 02:55 PM
- → State changed from new to resolved
(from [95724672604e2b3bbe4f37d97f931508af5afcb0]) [Fixes #175] Squashes some deprecation warnings https://github.com/sunspot/sunspot/commit/95724672604e2b3bbe4f37d97...
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.
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