Put `text` column in another table?

Ask a Question related to MySQL, Design and Development.

  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. Similar Questions and Discussions

    1. Two-column text inside one-column text box?
      Hello everybody, I'm working on a small size book with a one-column text box threaded through the whole thing. There are some short lists that I'd...
    2. add column to table with sql
      Does anyone know the SQL syntax to add a column to an existing Access table?
    3. Table -- Floating Column Bar
      Does anyone know if there is a way to have your columns of a table float? i have a table with 7 columns and about 500 rows. after you get halfway...
    4. Insert into <table w/ text column> select distinct ...
      Ok, so it makes sense: create table #myTable (myColumn varchar(10), textColumn text) insert into #myTable select distinct someValue, ''...
    5. select from drop list to fill table column with text -- HOW ?
      I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state...
  3. #2

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

    [email]howachen@gmail.com[/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]jstucklex@attglobal.net[/email]
    ==================
    Jerry Stuckle Guest

Posting Permissions

  • You may not post new threads
  • You may 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