8000 GitHub - samdevbr/elytra · GitHub
[go: up one dir, main page]

Skip to content

samdevbr/elytra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keys

Document Key

Document keys are used to store documents into the sled kv store.

+---------------+---------------+
| Tag           | Partition Key |
| 0x1 (1 byte)  | 16 bytes      |
+---------------+---------------+

Partition Key

A document partition key is used to embed the collection the document is part of, and it's unique id (a snowflake).

This provides key locality for documents within the same collection, and a natural sorting order by id.

Since it's a snowflake it also sorts by creation time.

+-------------------+-----------+
| Collection Tag    | Snowflake |
| 64 bits           | 64 bits   |
+-------------------+-----------+
127               63 62         0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

0