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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:22:56+00:00 2026-05-18T00:22:56+00:00

So. I have a table of data, in a MySQL database, eg: Artist Name

  • 0

So. I have a table of data, in a MySQL database, eg:

  • Artist Name
  • Artist Biography
  • Artist Age

lets say for example: 100 artists.

Because this data will be modified very rarely, I have created an interface whereby when the data is modified by the administrator using the content management system, the system queries the database, and saves a serialized PHP array of the data as a file on the server.

This file is recreated everytime a new artist is added, say once a week.

On the frontend, when the page is loaded instead of querying the database the page simply includes
the file (using output buffering) and produces the HTML page layout from this object.

Is this a good idea? Is this going to be quicker than having hundreds of users query the database everytime the page loads?

As an extension to this question, if I start to page the data e.g. set a limit on the MYSQL result object to 10 rows, will it be slower to access the whole table as a PHP array and cut that down into groups of 10 – echoing out the relevant section based on the query string?

  • 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-18T00:22:57+00:00Added an answer on May 18, 2026 at 12:22 am

    It probably will be slower. Storing it on the filesystem will require unserialization of the full file even if you need only a small chunk of data.

    Never forget: Databases are fast! And if they are not you are missing an index 😉

    PS: If you want to increase performance (and do so only if you really need it!) either use APC or even better cache the fully generated page, so it may be served nearly-statically.

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

Sidebar

Related Questions

I want to get array format from mysql database. Example,Let I have name table
I have a table which show data from mysql database in HTML table like
I have a data table populated from a MySQL database via PHP. The first
I have an HTML table populated with data from a MySQL database using a
MYSQL Database: I have a table of data that I need to put into
I have a table in a MySQL database which contains data like this; ID
I have a linked table in ms-access that pulls data from a mysql database.
I have a table called jobs in a MySQL database. One user adds data
In my SQL Server database schema I have a data table with a date
I have a MySQL table with the following data (simplified): INSERT INTO `stores` (`storeId`,

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.