You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- INDEX idx_row_table_id GLOBAL SYNC ON ( id ) COVER ( name, attributes ), -- Secondary indexes docs https://ydb.tech/en/docs/yql/reference/syntax/create_table#secondary_index
20
+
PRIMARY KEY (category_id, id)
21
+
)
22
+
WITH (
23
+
AUTO_PARTITIONING_BY_SIZE = ENABLED,
24
+
AUTO_PARTITIONING_PARTITION_SIZE_MB = 2048,
25
+
AUTO_PARTITIONING_BY_LOAD = ENABLED,
26
+
AUTO_PARTITIONING_MIN_PARTITIONS_COUNT = 4,
27
+
AUTO_PARTITIONING_MAX_PARTITIONS_COUNT = 1024
28
+
-- uncomment to create a table with predefined partitions
29
+
-- , UNIFORM_PARTITIONS = 4 -- The number of partitions for uniform initial table partitioning.
30
+
-- The primary key's first column must have type Uint64 or Uint32.
31
+
-- A created table is immediately divided into the specified number of partitions
32
+
-- uncomment to launch read only replicas in every AZ
33
+
-- , READ_REPLICAS_SETTINGS = 'PER_AZ:1' -- Enable read replicas for stale read, launch one replica in every availability zone
34
+
-- uncomment to enable ttl
35
+
-- , TTL = Interval("PT1H") ON expire_at -- Enable background deletion of expired rows https://ydb.tech/en/docs/concepts/ttl
36
+
-- uncomment to create a table with a bloom filter
37
+
-- , KEY_BLOOM_FILTER = ENABLED -- With a Bloom filter, you can more efficiently determine
38
+
-- if some keys are missing in a table when making multiple single queries by the primary key.
0 commit comments