Grey_Wolf Posted March 12, 2010 Report Share Posted March 12, 2010 galvenā doma manam teiktajam (sākumā) bij tieši ieraksta garuma limits innodb tabulām datubāzē (~8000 baiti). galiigi garaam ... ieraksta garums NAV ierobezots, Bet indexa grums gan ir limiteets, InnoDB pat pashas kopeejas tabulas izmers nav ierobezots, tas ir briivi var parsniegt standarta ~~4,3Gb, vieniigi td jadala pa atseviskjiem failiem, attieciigi Limita nav ( ir bet nu vinsh ir Ljoti liels) MyAsm --> max tabulas lielums ir ~~~4,3Gb. -- iespejams ka gribeji noindekseet tos text (blob) laukus.. tapeec arii dabuji shamo kljuudu .. -- tekst laukiem ieraksta garums veidojas no : pasha ieraksta + 2 baiti garuma aprakstam (TEXT tipam) Quote Link to comment Share on other sites More sharing options...
Maris-S Posted March 12, 2010 Report Share Posted March 12, 2010 (edited) No mysql dokumentācijas: 'The maximum row length, except for variable-length columns (VARBINARY, VARCHAR, BLOB and TEXT), is slightly less than half of a database page. That is, the maximum row length is about 8000 bytes. LONGBLOB and LONGTEXT columns must be less than 4GB, and the total row length, including BLOB and TEXT columns, must be less than 4GB.' Pārbaudei: CREATE TABLE `content` ( `content_1` TEXT, `content_2` TEXT, `content_3` TEXT, `content_4` TEXT, `content_5` TEXT, `content_6` TEXT, `content_7` TEXT, `content_8` TEXT, `content_9` TEXT, `content_10` TEXT, `content_11` TEXT ) ENGINE = InnoDB; Tagad pamēģiniet ielikt katrā laukā aptuveni 1kb tekstu, nezinu, paņemiet ziņu portālā vienu rakstu un salieciet katrā laukā, liekot 11 lauciņā būs kļūda. Edited March 12, 2010 by Maris-S Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.