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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:42:41+00:00 2026-05-27T17:42:41+00:00

I am developing small application in PHP that will need to store small number

  • 0

I am developing small application in PHP that will need to store small number of data but with frequent updates. Basically it will indefinetly collect information about our virtualization infrastructure and sometimes it will create an overview. And I am not sure which storage model/technology to use.

The collector thread will check cca 20 hosts with 100 virtual machines and need to store it somewhere as frequent as needed (maybe even every 5 secs). This will be an PHP-cli application. Sometimes there will be request on a webpage that need to aggregate all these information and produce list of host, VMs, etc…

I have considered these options:

  • PHP Sessions

+ very simple to use (I just point session to one shared file)

+ Atomic operation

– Session locking (PHP will manage session looking but if the script needs to write into session it will block all others)

  • Own implementation of “sessions” – store data in files

+ I can handle the locking problem myself, probably split data into more files

– Lot of work/testing with maybe only a little benefits

  • Mysql/SQLite/PostgreSQL

+ Robust solution

– I may run into locking problem or I will need to do row locking etc…

– Not sure if the database will not take a lot of disk space due to frequent updates

  • 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-27T17:42:42+00:00Added an answer on May 27, 2026 at 5:42 pm

    You can try using MySQL memory storage engine for those tables. .

    Pros:

    1. As data is stored in memory so it will be much faster
    2. This way, you can directly use many features of database (like selecting data by where, sorting) which you will have to implement for your database replacement.

    Cons:

    1. You can’t have BLOB or TEXT columns. (but if data is small you can convert it to VARCHAR)
    2. All data will be lost when MYSQL server restarts, so you will have to dump data of this table beforehand.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a small application that reads data from a database and displys it
I'm developing a small application using Blend, basically what I have in my application
I'm developing a small utility application that needs to detect whether another one has
I am in need of some further information. I am developing a small application
I am developing a small application that is going to serve as viewer (sort
I'm developing a small application but I'm having problem while deploying the application on
I'm developing a small application that has a few button and labels. On my
I am developing a small web application that uses jquery's drag and drop. Problem
I am developing a small android application in that i want find the mobile
I'm developing a small tray-icon application for Windows and I need to display non-intrusive

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.