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

  • Home
  • SEARCH
  • 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 833859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:35:06+00:00 2026-05-15T04:35:06+00:00

I am using mysql driven application where in all data comes from mysql and

  • 0

I am using mysql driven application where in all data comes from mysql and display it using php.

when designing the DB what all precautions must be taken so that mysql gives best performance.

i had a small doubt . I have text column in my form , and i dono how much length data will be entered . So instead of varchar(255) if i create it as varchar(2000) does it effects the performance ?

  • 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-15T04:35:06+00:00Added an answer on May 15, 2026 at 4:35 am

    varchar takes the number of bytes of the data + length prefix regardless of the length define

    eg.

    ‘xyz’ will take 4 bytes, 3 bytes for the data and 1 or 2 bytes will be added for length prefix, A column uses 1 byte if values require no more than 255 bytes, 2 bytes if values may require more than 255 bytes. In this case 1 byte will add up since data require less than 255 bytes.

    So go on buddy affect on the performance is negligible, that’s the beauty of VARCHAR.

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

Sidebar

Related Questions

I have a PHP/5.2 driven application that uses transactions under MySQL/5.1 so it can
Using mysql 5.5.2 on windows (Wamp) I'm writing a Java application that use several
(Using MySQL and PHP) I have a search form that will allow my users
I have developed a web application driven by a mysql database that stores information
I am developing a Web Application for the company I work for using PHP/MySql/Javascript.
Using MySQL should I store time data as an Int which would be the
Using MySQL, How do I import a user defined database function from one db
Using MySQL, I have a simple table that logs the IP Address that users
I am using JDBC to connect to MySQL for a small application. In order
The web application I'm currently developing supports CSV export from (using SELECT INTO OUTFILE)

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.