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 7432809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:31:03+00:00 2026-05-29T09:31:03+00:00

Which will be the best design of an online folder system? Use case is

  • 0

Which will be the best design of an online folder system?
Use case is like this.
User can upload a folder(.zip as folder upload is not supported). Then he can add more files/folder or remove some files/folder.

Will it be a good design if i do this by copying directly to the server file system(am concerned of possible perfomance issue, though this approach is the simplest one).
Or should i save the files into the DB?
If DB is the case, which is the best design for this?
Note im using mysql, servlets and glass fish for the development

  • 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-29T09:31:03+00:00Added an answer on May 29, 2026 at 9:31 am

    If the files are not sensitive and the disk space is not an issue the file system is better option than DB.

    Will it be a good design if i do this by copying directly to the server file system(am concerned of possible perfomance issue, though this approach is the simplest one)

    Regarding the performance, you got it exactly opposite. Just think about having to turn your your file contents to byte array and passing it through the network to the DB and have the DB handle it, and every time you want to just read it, it has to be done all the way from DB and then everything has to be loaded into memory, specially if you have to deal with a lot of large files, it might turn into a memory issue.

    Other problem with choosing DB over file system is that you have to make your application do what the file system would do for you. e.g. duplicate folder names within a folder, duplicate file names within a folder, which file belong to which folder, …

    If had the option to choose file system over DB then I would certainly do it.

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

Sidebar

Related Questions

Can one one please suggest me which one will be the best, fast and
which will be the best approach for a table design for keeping statuses for
I want to know which is the best architecture to adopt for this case
Consider these 3 table structures. Which will perform these queries the best. Structure 1
I need query which will check user supplied date range is in between the
Ok, so this may not be the best design decision, and I don't really
I am trying to determine the best design pattern to use for a business
I am working on a system, which will run on GAE, which will have
I'm working on the design of a web app which will be using AJAX
I'm building a system which will have a few channels feeding different clients (MonoDroid,

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.