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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:46:16+00:00 2026-05-30T15:46:16+00:00

Creating a CMS, I have a settings table, in which I store many CMS

  • 0

Creating a CMS, I have a “settings” table, in which I store many CMS settings. Such as Site name, URL, etc.

I have seen it where each row is a setting (Vertical)

I have also seen it where each column is a setting (Horizontal)

What do you think the CORRECT method is?

Vertical:

+----------------------+
+id |   name   | value +
+----------------------+
+0  |   site   | (url) +
+1  | comments |   0   +
+----------------------+

Horizontal:

+---------------------------------------------+
+id  |  site   |  comments  |  title  |  etc  +
+---------------------------------------------+
+0   |  (url)  |     0      |YourSite |  etc  +
+---------------------------------------------+
  • 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-30T15:46:18+00:00Added an answer on May 30, 2026 at 3:46 pm

    I personally would use a vertical way of doing it, as it doesn’t restrict you to the settings for which you currently have a column. You can add as many as needed later. With a horizontal approach you’d have to add a new column for each setting.

    What Knossos says about caching is true, make sure to cache the settings whenever possible.
    Tables like these are read on every pageview and cost database performance while they shouldn’t. Memcached is a very good suggestion but if you only have a single webserver, you can use APC just as well.

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

Sidebar

Related Questions

I'm creating a cms and have not yet settled on the matter of where
I am creating a tool with which to edit web pages within a CMS.
I'm creating a PHP CMS and have some system pages like a 404 page,
I have been given a new task from the client which is basically creating
I'm currently creating my own CMS and I have a hard question (I think
I am creating a notification class which uses the session to store messages. I
I am creating a custom CMS and have built a login system and was
I am creating a CMS with codeigniter and need to store some text that
I'm creating a theme for a CMS, and only have the ability to change
Am creating a simple cms and i have the following <input type=submit value=delete title=Delete

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.