Storing and displaying Images

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Storing and displaying Images

    I am trying to find out which one of following two (2) options is fastest and
    most reliable in order to work with 100,000 images located in 100 folders:

    Option 1: ?Storing the path of the image file on a database?
    For this I would have a 4 columns table with 100,000 records to store the
    100,000 paths of the images. I?d have to use "CFQUERY" and "IMG" to retrieve
    the images

    Option 2:?Storing only the folder names where the images are located? .
    For this I would have a 2 columns table with 100 records to store the 100
    folder names.
    I?d have to use "CFQUERY" to get the folder names and "CFDIRECTORY" and "IMG"
    to retrieve the images

    Which Case according to your experience is the fastest and most reliable way
    to serve images.

    Your feedback will be very welcome

    Thanks a lot!


    alanfox70 Guest

  2. Similar Questions and Discussions

    1. Help displaying images
      I am trying to display many pictures. I get all the file names in an array, cycle through the array creating image objects, then add them to the...
    2. displaying images
      i am tying to display images dynamically on a product detail page based on a user selection on a page which displays a list of products. i am using...
    3. Storing Images in SQL Server - ASP storage and retrieve
      I need some help, because I am utterly confused with how to do this. I have 2 things that I need to figure out, and could use some sample code or...
    4. ASP Displaying Images from within SQL DB
      I've been searching and searching for this and there are lots of posts - but very few answers. I have a SQL2000 Database that has jpg images in a...
    5. Storing and Displaying source code through browser
      Hi All, I am trying to build a web based application using ASP.NET that I can use to store and retrieve source code samples. The question I have...
  3. #2

    Default Re: Storing and displaying Images

    I would imagine the first option would be faster. Your database won't break a sweat dealing with 100,000 records. Be sure to establish the appropriate index(s) to speed up your SELECT.
    jdeline Guest

  4. #3

    Default Re: Storing and displaying Images

    jdeline,

    Thank for your response.

    But when a database starts getting slow? at 1,000,000 records? is it matter
    how many users are pulling different queries from this table?

    Thanks for your help!







    alanfox70 Guest

  5. #4

    Default Re: Storing and displaying Images

    your OS will start having troubles before the db will if you use option 1.

    PaulH Guest

  6. #5

    Default Re: Storing and displaying Images

    Paul,

    so I guess you recommend option 2, right?

    Let me know, thanks
    alanfox70 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139