Professional Web Applications Themes

Put `text` column in another table? - MySQL

Hi, usually, use of a single table is recommended for performance as only one seek time is required. However, when a table include many columns with `text` field, should we also do this? Should be separate the `text` fields in another table, and link them up using a key? Which method is better for performance? Thanks....

  1. #1

    Default Put `text` column in another table?

    Hi,

    usually, use of a single table is recommended for performance as only
    one seek time is required. However, when a table include many columns
    with `text` field, should we also do this?

    Should be separate the `text` fields in another table, and link them up
    using a key?

    Which method is better for performance?

    Thanks.

    howachen@gmail.com Guest

  2. #2

    Default Re: Put `text` column in another table?

    [email]howachen[/email] wrote:
    > Hi,
    >
    > usually, use of a single table is recommended for performance as only
    > one seek time is required. However, when a table include many columns
    > with `text` field, should we also do this?
    >
    > Should be separate the `text` fields in another table, and link them up
    > using a key?
    >
    > Which method is better for performance?
    >
    > Thanks.
    >
    It depends on a lot of factors. Number of columns, size of the data in
    those columns, frequency of which you're accessing columns and probably
    30 other things I can't think of right now. It's totally impossible to
    provide a general rule.

    For instance - at least in MySQL - if you have a column containing 1K of
    text (average) and you need it on a 75% of your requests, you *probably*
    want it in the same table. But if that column contains 1M of text
    (average) and you only need it on 2% of your requests, you probably want
    it in a different table.


    --
    ==================
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    [email]jstucklexattglobal.net[/email]
    ==================
    Jerry Stuckle Guest

Similar Threads

  1. Two-column text inside one-column text box?
    By CyrilW@adobeforums.com in forum Adobe Indesign Macintosh
    Replies: 5
    Last Post: July 6th, 05:41 PM
  2. add column to table with sql
    By cf_chick in forum Coldfusion Database Access
    Replies: 3
    Last Post: May 25th, 06:49 PM
  3. Add a column of values to a table
    By Sebastian, CHILE ... in forum ASP.NET Web Services
    Replies: 1
    Last Post: February 3rd, 06:42 PM
  4. Insert into <table w/ text column> select distinct ...
    By Adam Nester in forum Microsoft SQL / MS SQL Server
    Replies: 0
    Last Post: June 30th, 04:38 PM
  5. select from drop list to fill table column with text -- HOW ?
    By Richard Galli in forum PHP Development
    Replies: 0
    Last Post: June 25th, 08:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139