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

  • Home
  • SEARCH
  • 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 6543315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:19:54+00:00 2026-05-25T11:19:54+00:00

The question: better a deep folder structure or less subfolder with thousands files? The

  • 0

The question: better a deep folder structure or less subfolder with thousands files?

The problem:
I have a VB.NET program that generates around 2500 XML files per year (circa 100 KB per file).
I have to store the files on a file server (Windows 7 or NAS).
On the network there are around 30 PCs using that program.

I am looking for the best way to plan the structure of the folders on the file server with the goal to have a good human-readable folders structure and at the same time a fast access to the file.

In the past I made a similar program with the following structure:

\fileserver\PC1\year\months\file00001.xml

in other words a folder for each PC on the LAN
then a subfolder for the years
then a subfolder for the months
and in the month-folder the files generated in the current month
(of course the filename has a special stamp)

in this way I got nearly 200 files per months.
This program run since years without problem.

But now I would like to remove the subfolder “MONTH” in order to have all the files generated by PC in the current year together in the subfolder year, as

\fileserver\PC1\year\file00001.xml

this solution would produce a clearer folder tree, but more files per folder.
I do not know if this could be an issue in term of speed by file accessing with vb.net programs or other third hand application.

Which folder structure would you choose?

Thanks for replying.

  • 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-25T11:19:55+00:00Added an answer on May 25, 2026 at 11:19 am

    If you use NTFS, then measurements show that flat structure will work faster than dealing with subdirectories, but the difference is minimal (maybe 1% or even less, I don’t have numbers at hand now).

    Update: For one (single) file access less searches are involved and subdirectories offer better performance. But if you have random access to your files, then over time more and more files will be accessed and the OS will have to scan all directories and load them to memory. When it comes to processing large number of files, subdirectories tend to become slower. Also on NTFS, which has an index of file names, opening particular file is quite fast, and walking through subdirectories can be even slower, than opening the file from the same folder.

    To summarize: speed significantly depends on usage scenario. I also believed, that grouping files into subdirectories would bring significant benefits, until I did tests. NTFS performed much better on hundreds of thousands of files in one folder, than one would expect. So I’d recommend making your own tests in your particular usage scenario.

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

Sidebar

Related Questions

I have a Flash app that uses an implementation of SWF Address for deep
Winforms question: Better design to have 1 control, say a dropDownList, conditionally bind to
Originally posted on Server Fault , where it was suggested this question might better
QUESTION: Is it better to send large data blobs in JSON for simplicity, or
This question is probably better phrased: how does running a Java server on a
This question maybe a better fit on The Business of Software forum but despite
My question is what is better to use in generating columns in SQL. Should
I put better in quotes because it's a qualitative question. I've been writing COM
Simple question; what's better and why? out.resize( in.size() ); T1::iterator outit = out.begin(); for(
This is just a question to help me understand CSS rendering better. Lets say

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.