Kouhei Sutou
null+****@clear*****
Thu Dec 27 18:26:02 JST 2012
Kouhei Sutou 2012-12-27 18:26:02 +0900 (Thu, 27 Dec 2012) New Revision: fec25617937db8bf724d28428d0c2fb35ece1d7b https://github.com/groonga/groonga/commit/fec25617937db8bf724d28428d0c2fb35ece1d7b Log: doc table: add about record ID and persistent and temporary table Modified files: doc/source/reference/tables.txt Modified: doc/source/reference/tables.txt (+34 -4) =================================================================== --- doc/source/reference/tables.txt 2012-12-27 18:05:45 +0900 (743beb2) +++ doc/source/reference/tables.txt 2012-12-27 18:26:02 +0900 (a3f918f) @@ -105,12 +105,43 @@ name. Those features are implemented by ``TABLE_DAT_KEY``. The number of objects is small. So large data size demerit of ``TABLE_DAT_KEY`` can be ignored. +Record ID +--------- + +Record ID is assigned automatically. You cannot assign record ID. + +Record ID of deleted record may be reused. + +Valid record ID range is between 1 and 268435455. (1 and 268435455 are +valid IDs.) + +Persistent table and temporary table +------------------------------------ + +Table is persistent table or temporary table. + +Persistent table +^^^^^^^^^^^^^^^^ + +Persistent table is named and registered to database. Records in +persistent table aren't deleted after closing table or +database. + +Persistent table can be created by +:doc:`/reference/commands/table_create` command. + +Temporary table +^^^^^^^^^^^^^^^ + +Temporary table is anonymous. Records in temporary table are deleted +after closing table. Temporary table is used to store search result, +sort result, group (drilldown) result and so on. ``TABLE_HASH_KEY`` is +used for search result and group result. ``TABLE_NO_KEY`` is used for +sort result. + Limitations ----------- -Valid ID range is between 1 and 268435455. (1 and 268435455 are valid -IDs.) - The max number of records is 268435455. You cannot add 268435456 or more records in a table. @@ -123,7 +154,6 @@ The max number of total key size is 4GiB. You need to split a table, split a database (sharding) or reduce each key size to handle 4GiB or more larger total key size. - See also -------- -------------- next part -------------- HTML����������������������������... Download