Displaying 1 result from an estimated 1 matches for "valid_product".
2006 May 01
10
large file storing in postgres sucks?
Hi,
I''m not sure if this is a postgres issue or not, but I''m using
Postgres 8.1. I have (in my functional tests) the following code:
upload = fixture_file_upload(''/files/podcast.mp3'', ''audio/mpeg'')
post :create, :product => valid_product, :media => { :image => upload }
And then in the controller:
blob = Blob.create :data => uploaded_file.read
When /files/podcast.mp3 is 32 megabytes and I run the test, memory
spikes hugely. My laptop quickly began swapping out memory and became
unusable. top showed the memory usage of...