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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:24:49+00:00 2026-06-10T06:24:49+00:00

Is it okay if I have a table with more than 20 fields in

  • 0

Is it okay if I have a table with more than 20 fields in DB table?

ID | NAME | 1 | 2 | 3 | .....

Each of fields like ‘2’ holds only Y or N in them.
Or is it bad idea to have so maybe fields in one table?
Will this slow down my performance of server?

And there may be about 20 or more Ids in the table.

  • 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-06-10T06:24:51+00:00Added an answer on June 10, 2026 at 6:24 am

    I have no idea if it will slow the database down but it is not a very nice database design, no. What you could do to optimize the design is the following:

    Make a table: ID | NAME and another table: ID | NUMBER | BOOLEAN and link the two ID’s together.

    You will probably have some more PHP code this way, but it will make the database a lot more managable and neater.

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

Sidebar

Related Questions

I have a table with many (maybe more than 500) different attributs in an
I am wondering if it is okay to have master and detail table for
Okay, here's the situation: We have a table of about 50 columns (created by
okay, i'm setting up a multi-user chat system. i have a messages table, that
Okay, I'm stumped here. I have a control that is comprised of a table.
Suppose I have a table with a column name varchar(20) , and I store
I'm using SQL Server 2008. I have a database table that looks like this
okay, my problem is a little bit more difficult than the title would tell...
I have table name Transaction in the DB. I want to have 2 subclasses
QUESTION: Is it okay to have shortcut identifiers in a table so that I

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.