Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Once I get the row using DBI calls, I display the image using CGIselect mimetype, image from table where rowid=nn
print header(-type => mimetype,-Content_Length =>length(image)),image;
The primary reason I do this (as opposed to storing in files) is that I do not need to keep track of the files and do not have to worry about separately backing up images. The images are stored in a separate image table. I do not query this table, except for look up based on primary key to display the image. The maximum size of the images would be 200K
My image table is now about 3GB. The response time for image display is acceptable now. But the image table is likely to grow a good bit and the hits would increase gradually.
I am wondering if I would run into performance problems with this approach and should I try to explore other alternatives. I would be thankful for your input.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Storing/Retrieving images as blobs
by dHarry (Abbot) on Sep 26, 2011 at 06:59 UTC | |
by tweetiepooh (Hermit) on Sep 26, 2011 at 11:03 UTC | |
by MidLifeXis (Monsignor) on Sep 26, 2011 at 13:13 UTC | |
by dHarry (Abbot) on Sep 26, 2011 at 11:49 UTC | |
|
Re: Storing/Retrieving images as blobs
by chrestomanci (Priest) on Sep 26, 2011 at 09:43 UTC | |
by dHarry (Abbot) on Sep 26, 2011 at 11:38 UTC | |
|
Re: Storing/Retrieving images as blobs
by locked_user sundialsvc4 (Abbot) on Sep 26, 2011 at 12:54 UTC | |
|
Re: Storing/Retrieving images as blobs
by Anonymous Monk on Sep 26, 2011 at 13:46 UTC |