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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:21:29+00:00 2026-05-25T19:21:29+00:00

I have a few simple questions about data storage on a website I am

  • 0

I have a few simple questions about data storage on a website I am developing. The site in question will allow users a personal profile space which they have the ability to customise with text, images, BB code and alike. These profiles will have a character limit of around 5000. I was wondering how best to store this data, as it seems like a large amount to store in the database.

I was thinking about maybe using simple text files to store the data, and name them with the users ID. What do you guys think would be best for access and write speed, and would it detract from database read/write performance; as viewing and updating profiles will be a large part of the website.

Thanks guys. I look forward to hearing your opinions.

  • 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-25T19:21:29+00:00Added an answer on May 25, 2026 at 7:21 pm

    I would go for storing them in the database because:

    1. All data in the database can use transactions to keep stuff consistent;
    2. A single insert (transaction) will take care of all your storage needs;
    3. A single select will retrieve all data;
    4. Backup the database and you are done;
    5. If you run into slowness, setting up a master-slave scheme or partitioning is easy;
    6. You can use database tools to search in the data;

    On the other hand if you use the filesystem:

    1. filesystems do not have transactions, what happens if an insert fails, and you need to rollback, the file has already been saved;
    2. what happens if the filesystem gets out-of-sync with the database?
    3. It complicates your code, adding to the bugpressure;
    4. Writing to the filesystem adds an extra security hole, because your DB-app can now write and perhaps overwrite existing files on the filesystem.

    More generally
    Using the filesystem is used because storing large blobs in a db can be slow.
    However you should not optimize until slowness sets in. Premature optimization is the root of all evil.
    Slowness may never be a problem and besides you can do lots of optimization in the DB as well.

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

Sidebar

Related Questions

Pretty simple question. I have a few ASP RequiredFieldValdators checking some text boxes. Out
I'm diving into iOS development and I have a few questions about manipulating a
i am reading Accelerated C# 2010. and have a few questions Question 1 Instances
I have read few questions about parsing string by tags, but I didn't find
I have a few simple scripts that are intended to daisy chain together to
To keep things simple, we have a few aspx pages... Page1.aspx - resets Session
I have a simple aspx page with a few TextBoxes and a submit button.
I have a simple C++ DLL that implements a few custom actions for a
I have simple win service, that executes few tasks periodically. How should I pass
I have a simple JavaScript Array object containing a few numbers. [267, 306, 108]

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.