[前][次][番号順一覧][スレッド一覧]

mysql:14526

From: oiron <oiron <norio.oiron@xxxxxxxxxx>>
Date: Sat, 10 May 2008 15:24:53 +0900
Subject: [mysql 14526] Re: mysqlclusterの最大カラム数について

谷口です。

2008/05/09 20:56 Mikiya Okuno <okuno@xxxxxxxxxx>:
> MySQLの奥野です。こんばんは。
こんばんは。
>
> MySQL Cluster における1テーブルあたりの最大カラム数は128です。
では、31以上もっともっとカラム作成できますね。
> また、一行の最大サイズは8KBです。(BLOBとTEXTは先頭の
> 256バイト+オーバーヘッド以外、別の領域に保存されます。)
>
> 8KBの制限にはひっかかってないですか?
データ投入前段階ですのでひっかかっていないと思います。
> CREATE文のエラーはどんな内容ですか?

cat create_tbl.sql
--------------------------------------------------
drop table if exists jarticles;
create table articles(
no int,
body text,
c1 text,
c2 text,
c3 text,
c4 text,
c5 text,
c6 text,
c7 text,
c8 text,
c9 text,
c10 text,
c11 text,
c12 text,
c13 text,
c14 text,
c15 text,
c16 text,
c17 text,
c18 text,
c19 text,
c20 text,
c21 text,
c22 text,
c23 text,
c24 text,
c25 text,
c26 text,
c27 text,
c28 text,
c29 text,
c30 text,
c31 text,
c32 text,
c33 text,
c34 text,
c35 text,
c36 text,
c37 text,
c38 text,
c39 text) ENGINE=NDBCLUSTER;
--------------------------------------------------

で、
----------------------------------------------
Query OK, 0 rows affected, 1 warning (0.00 sec)

ERROR 1005 (HY000): Can't create table 'hoge.articles' (errno: 140)
-------------------------------------------------------------------------------------------------
となります。
となります。
よろしくお願いします。



> --
> Mikiya Okuno, Support Engineer
> MySQL KK, http://www-jp.mysql.com/
> Office: Ebisu IS Building, 6th floor,
>        13-6 Ebisu 1-chome,
>        Shibuya-ku, Tokyo 150-0013
> Tel: 81-(0)3-5918-7523
> Fax: 81-(0)3-5918-7510
>
> Are you MySQL certified?  http://www.mysql.com/certification
>
> On 2008/05/09, at 20:22, Satoshi Tatsuoka wrote:
>
>> 立岡です。
>>
>>> CentOS4.6(Final)
>>> mysql5.1.24
>>> で、mysqlclusterを構築したのですが、
>>> 1テーブルに31カラム以下のテーブルしか作成できません。
>>> これは、仕様でしょうか。
>>
>> 私の手元では40カラム以上でも動いていますよ。
>> 5.1.6から5.1.8まではバグで4096文字を越えるCREATE文はエラーとなっていまし
>> た。5.1.24は問題ないと思うのですが、ALTER文でもカラムを追加できないので
>> しょうか?
>>
>>> あと、5.1系はディスクベースのクラスターが構築できるとのことですが、
>>> 現在メモリーベースかディスクベースかどちらで動作しているか確認する方法はございますでしょうか。
>>
>> SHOW CREATE TABLEをすればすぐに分かります。
>> ディスクベースであれば5.1の新機能のTABLESPACEとSTORAGE DISKオプションを
>> 指定してあるはずです。
>>
>> 詳しくは
>> http://dev.mysql.com/doc/refman/5.1/ja/mysql-cluster-disk-data.html
>> に書かれています。
>>
>> しかし、5.1でデータはディスク上に持てるようになりましたが、インデックス
>> は相変わらずメモリ上に持つことになりますので、メモリはたくさんあった方が
>> いいことには変わりありません。
>>
>>
>
>
>



-- 
谷口<norio.oiron@xxxxxxxxxx>

[前][次][番号順一覧][スレッド一覧]

     14523 2008-05-09 19:12 [oiron <norio.oiron@x] mysqlclusterの最大カラム数について      
     14524 2008-05-09 20:22 ┗[Satoshi Tatsuoka <sa]                                       
     14525 2008-05-09 20:56  ┣[Mikiya Okuno <okuno@]                                     
->   14526 2008-05-10 15:24  ┃┗[oiron <norio.oiron@x]                                   
     14527 2008-05-10 16:49  ┣[oiron <norio.oiron@x]                                     
     14531 2008-05-12 18:09  ┃┗[oiron <norio.oiron@x]                                   
     14528 2008-05-10 16:58  ┗[oiron <norio.oiron@x]                                     
     14529 2008-05-10 19:01   ┣[Satoshi Tatsuoka <sa]                                   
     14530 2008-05-11 21:49   ┃┗[oiron <norio.oiron@x]                                 
     14532 2008-05-12 19:52   ┣[oiron <norio.oiron@x]                                   
     14533 2008-05-12 23:34   ┗[oiron <norio.oiron@x]                                   
     14534 2008-05-13 09:37    ┗[Satoshi Tatsuoka <sa]                                 
     14535 2008-05-13 11:24     ┗[oiron <norio.oiron@x]                               
     14536 2008-05-14 09:50      ┣[Satoshi Tatsuoka <sa]                             
     14562 2008-05-19 19:22      ┃┗[oiron <norio.oiron@x]                           
     14564 2008-05-20 10:58      ┃ ┗[Satoshi Tatsuoka <sa]                         
     14580 2008-05-25 15:55      ┃  ┗[oiron <norio.oiron@x]                       
     14602 2008-06-17 10:37      ┃   ┗[Satoshi Tatsuoka <sa]                     
     14606 2008-06-26 01:11      ┗["YasushiInui" <yasus]