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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:49:52+00:00 2026-05-14T06:49:52+00:00

My application gets configured via a lot of key/values (let’s say 30.000 for instance)

  • 0

My application gets configured via a lot of key/values (let’s say 30.000 for instance)

I want to find the best deployment method for these configurations, knowing that I want to avoid DEFINEs to allow for runtime re-configuration.

I have thought of

  • pre-compiling them into an array via a php file
  • pre-compiling them into a tmpfs sqlite database
  • pre-compiling them into a memcached db

what are my options for

  • the best random access time to these configuration (memory is not an issue) ?
  • the best structured access time if i can break up these configuration into families like (network, i18n, ..)

Thanks
Jerome

  • 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-14T06:49:53+00:00Added an answer on May 14, 2026 at 6:49 am

    Well, if memory isn’t an issue, just serialize an array to a file. There is absolutely no faster solution than this. You don’t have the I/O and library overhead of SQLite, and you don’t have the network overhead of memcached.

    But keep in mind, memory must really not be an issue. You’d be loading the entire 30,000 element array into memory at once, as opposed to using a database, where you could load them on an as-needed basis.

    To structure the settings, you could put each in its own file.

    But really, you should be using a database. That’s what they’re there for. I really question why you would need to worry about 30k settings..you might want to reconsider your application design.

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

Sidebar

Related Questions

I learning Perl and I want to create a simple application that gets all
I'm making an application which uses MANY images. The application gets the images from
My Rails 3.2.2 / Ruby 1.9.3 application gets search requests such as: http://booko.com.au/books/search?q=Fran%E7ois+Vergniolle+de+Chantal Ruby
We have a web application that gets its data from a certain database. The
I'm trying to debug an application which gets an InvalidCastException. The failing line is
I have a Silverlight 4 application which gets data from a silverlight enabled WCF
We have a custom PHP/MySQL web application that gets updated and copied (using SFTP)
I am trying to run a web application that gets a specific length of
I'm working on an MVC3 Razor web application which gets it's page decoration from
I have configured Reporting Services to allow users to use Report Builder application. Users

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.