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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:46:57+00:00 2026-05-26T06:46:57+00:00

Every user on my site has a settings file hosted on the server. The

  • 0

Every user on my site has a settings file hosted on the server. The user can add and delete “items”, for which a reference of them is added to the settings list; therefore, it can become quite big if the user has many “items”. The specific question is: is it more efficient to store a file in a PHP Session or just access it for every page request.

I thought about using a database instead of a settings file; however, I thought it would be extremely inefficient since there would be one entry per item each user adds. But, would it still be more efficient to use SQL?

P.S: “items” are actually applications, but for the sake of not confusing, it was changed.

If you believe this question is confusing or requires further explanation, please comment!

  • 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-26T06:46:58+00:00Added an answer on May 26, 2026 at 6:46 am

    SQL by itself is not very efficient, but the storage engine for sorting / filtering / presenting is. On the other hand the session is just a plain file in some kind of storage, meaning:

    • Use sessions storage if the data saved there has to be present on each page request, but unnecessary data will only cost you I/O time on RAM and HD.
    • Use SQL if you want to slice the data elegantly, but remember that php is actually executing another application through operating system calls.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A site has 100's of pages, following a certain sitemap. A user can navigate
Currently I'm registering every user control separately in Web.config <pages validateRequest=false> <controls> <add tagPrefix=cc1
We have a user table, every user has an unique email and username. We
In a typical User - Post - Comment model in Rails, every user can
Let's say I have two entities: Group and User. Every user can be member
Let's say I have a table that has user_id, date, score, and every user
I think every browser has user-controllered full-page zoom nowadays. Is it in anyway accessible
I have a site which has been running for a year now and new
So i'm implementing a feature where after a user has visited my site, and
With user controls on a page, I understand that every control has an impact

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.