Results 1 to 3 of 3

Thread: Efficiency of storing images in database?

  1. #1

    Thread Starter
    Addicted Member Rockhopper's Avatar
    Join Date
    Aug 2003
    Location
    Cape Town, South Africa
    Posts
    199

    Wink Efficiency of storing images in database?

    I know that perhaps this question could go into the DB forum, but it has a web-flavour.

    I am going to be involved in building quite a large web portal this year, and am quite interested in the performance issues around storing images directly into a database.
    When it comes to storing images... is it better to store my images directly in the SQL database... or in folders with the path in the database? (For a large system)

    I am worried that the speed of the application may be severely affected if i store the images in the db, but perhaps i am wrong...?


    Your thoughts? (those that have experience in this plz)

    If the facts don't fit the theory, change the facts. --Albert Einstein

  2. #2
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    Talking Re: Efficiency of storing images in database?

    How big are these images? The main things I think aboutare:
    a) the user has to dowload the image anyway.
    b) am I going to be hitting the db for houndreds of images at once?
    c) are these images going to be bigger than a few 100k? Let's say 600k to 1mb.
    d) 100mbs from the db to the web server...

    Then I say to myself if I put 1024 chars in a varchar isn't that about 1k?

    Seriously though. I did this on a site, and I was storing images as jpgs biggest image about 200k. At most I was pulling about 10 at once. I honestly could not tell that it was having any big impact. But, I never got to work with the site at the level of 500 users on it at once. I think the most on it at once was like 20....
    Magiaus

    If I helped give me some points.

  3. #3
    Member
    Join Date
    Mar 2005
    Posts
    43

    Re: Efficiency of storing images in database?

    I have also been thinking about this....but also couldn't descide

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width