Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7690219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:20:45+00:00 2026-05-31T20:20:45+00:00

We have about half a million images residing in the file system. Multiple images

  • 0

We have about half a million images residing in the file system. Multiple images belong to a product and named after ProductID. For example, Product ID 10010 has 3 images; 10010_1.jpg, 10010_2.jpg and 10010_3.jpg. To display these 3 images in photo gallery, current code in classic ASP is querying the file system. The code looks something like this:

Dim objFSO, i
Set objFSO = Server.CreateObject("Scripting.FileSystemObject") 
i=1
While objFSO.FileExists(Server.MapPath(productid & "_" & i & ".jpg")
    ' draw the image
    i = i + 1
WEnd

Isn’t it better idea to keep the image names in a database table and run a query to get the list of images available for a given product? I am pretty sure that reading it from the database is better. Just reluctant because I need a big table with half million records. Which way is more efficient?

My table will look something like this:

ID      ProductID   ImageURL
-------------------------------------------
1       10010       10010_1.jpg
2       10010       10010_2.jpg
3       10010       10010_3.jpg
4       10011       10011_1.jpg
. . .

Any suggestions? I am re-writing the web site in ASP .NET MVC 3. Anything extra I need to take care of in this platform/Framework?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T20:20:46+00:00Added an answer on May 31, 2026 at 8:20 pm

    Half a million records in a database is not really that big.

    If your table is indexed correctly then you will get far better performance from a database than the file system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very large database of jpeg images, about 2 million. I would
I have spent about half a day searching for an answer to this question
I am running Ubuntu 9.04 and have done about a half hour worth of
I have an object that contains about half a dozen properties. I expect to
I have a UIscrollview that takes up about half of a screen. The scrollview
I have a desktop app that has 65 modules, about half of which read
I have a script that uses a ton of redirects. About half way through
We're using a Oracle Text CTXSYS.CONTEXT index to index about half a million rows
I have about half a dozen generic, but fairly complex stored procedures and functions
I have a site that has a big form page and about half of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.