Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Image "gallery" design considerations

by Chmrr (Vicar)
on Jun 19, 2002 at 11:48 UTC ( #175632=note: print w/ replies, xml ) Need Help??


in reply to Image "gallery" design considerations

It sounds like a database would be perfect for this job. Particularly because you seem to want to be able to look at the data from several viewpoints at once -- all "Palm" images, say, or all images one at a time in order, or ... This is the bread and butter of relational databases.

You probably only want to store the textual data in the database. Generally, it's best to leave the files themselves to what deals with them best -- namely, the filesystem. It's more complicated, with far more overhead and possible pitfalls, and very little (if any!) gain, to put the images themselves into the database. It's oh-so much easier to just have a column for "image_url" which one can just spit out, and let the browser handle fetching the image from the webserver.

perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'


Comment on Re: Image "gallery" design considerations

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://175632]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2014-08-27 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (248 votes), past polls