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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:46:32+00:00 2026-06-05T09:46:32+00:00

Is there any advantage in using a file to store a long piece of

  • 0

Is there any advantage in using a file to store a long piece of text (say, a lengthy blog article), over a MySQL TEXT-type field? In my mind, I would imagine having retrieving the file through your program (PHP) being much quicker than bothering MySQL with fetching it for you.

  • 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-06-05T09:46:33+00:00Added an answer on June 5, 2026 at 9:46 am

    I’d say there are advantages either way, and it’s just up to your specific situation. For example:

    Using a text database field means that your blog entries are all contained in your database, making it easier to back up and move. It also means that you will not have to worry about file access, things like security, file locks, file names, etc. Also, you can query the data without writing any special code.

    Using files instead also has benefits. It keeps your database small, especially when dealing with a lot of files. It allows the data to be accessed easily by other people, programs or machines with no database access. And you can easily transfer the files to another location if you need to reorganize your disks.

    So it’s totally up to your environment. Personally, unless you’re dealing with a huge number of files, or huge files, I’d probably stick with the database option. It’s just easier to deal with in most cases.

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

Sidebar

Related Questions

Is there any advantage in using file writing with overlapped IO in Windows, vs
Is there any advantage to using Ajax to get data formatted as XML over
Is there any advantage in using one over the other? Should I use the
Is there any advantage of using int vs varbinary for storing bit masks in
I create indexes without the USING BTREE clause. Is there any advantage of using
Is there any advantage of having the option of using private extension methods? I
What advantage (if any) is there to using typedef in place of #define in
Are there any advantages of using one over the other besides readability?
Possible Duplicate: C++ char* vs std::string Is there any advantage to using char*'s instead
Is there any advantage of using {} instead of string concatenation? An example from

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.