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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:33:31+00:00 2026-06-02T02:33:31+00:00

I am storing a large string in each mysql database row that is approximately

  • 0

I am storing a large string in each mysql database row that is approximately 1500 characters long. This value is infrequently used, making performance not very important, but the values from the other columns of the database are used frequently.

Is it sub-optimal for me to store these large strings into this table in the same rows as the other data (that I will be accessing more frequently)? Does this hurt performance in some way?

Should I store these large strings in a separate table? I’m just not clear on how mysql optimizes these kind of things, and not sure if I need to worry.

  • 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-02T02:33:33+00:00Added an answer on June 2, 2026 at 2:33 am

    There is no need to save these strings in other table if you “dont touch them”.

    Dont use something like this –

    SELECT * FROM `my_table`
    

    this will make you read from database that long string. Try to do it like this.

    SELECT field1, field2 FROM `my_table`
    

    where field1 and field2 are not the long string fields. Off course, if you need then include also it in SELECT query. In this way you save time on fetching from database.

    And you dont need to worry about this while you dont have a lot of data.

    Try reading this:

    http://dev.mysql.com/doc/refman/5.0/en/select-optimization.html

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

Sidebar

Related Questions

the deal is this: I have a MySQL database that is built in this
I have a large string, similar to this one: BREW pot HTCPCP/1.0 Accept-Additions: #milk;3#whiskey;splash
I have a arbitrarily large string of text from the user that needs to
My users will import through cut and paste a large string that will contain
I'm building a social networking type site that will be storing large chunks of
I have a very large and complex MySQL query that gets run from a
I'm building a large string from a list of items. Each item will generate
I have a large text string and about 200 keywords that I want to
I have a large collection of small objects, each has a unique string ident.
given 2 large tables(imagine hundreds of millions of rows), each one has a string

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.