Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
dd62b9b
Data modelling: Add new section
stephanec76 Aug 7, 2025
2549006
Data modelling: Fix page about "relational data"
surister Aug 23, 2025
73ce057
Data modelling: Fix page about "json data"
zolbatar Aug 23, 2025
75899f6
Data modelling: Fix page about "timeseries data"
karynzv Aug 23, 2025
f6d3bba
Data modelling: Fix page about "geospatial data"
kneth Aug 23, 2025
d60feef
Data modelling: Fix SQL in page about "geospatial data"
amotl Aug 23, 2025
52c3008
Data modelling: Fix page about "full-text data"
bmunkholm Aug 23, 2025
736652c
Data modelling: Fix page about "vector data"
juanpardo Aug 23, 2025
33ecc94
Layout: Improve responsiveness on pages using cards heavily
amotl Aug 23, 2025
b5ad8b4
Data modelling: Populate index page
amotl Aug 23, 2025
036ebcf
Data modelling: Relocate original page about primary keys and sequences
amotl Aug 23, 2025
488e43c
Move connect page to install
bmunkholm Aug 28, 2025
8e8be1c
Updated FTS in modelling
bmunkholm Aug 28, 2025
68591e9
Updated datamodel json from Gitbook.
bmunkholm Aug 29, 2025
bebb183
Updated datamodel json from Gitbook.
bmunkholm Aug 29, 2025
27aaf16
Merge branch 'data-modelling2' of https://github.com/crate/cratedb-gu…
bmunkholm Aug 29, 2025
855950c
reformat json to 80 chars, convert link to reference
bmunkholm Aug 29, 2025
a7afeda
Update Primary key strategies
bmunkholm Aug 29, 2025
aee1c58
Add link to data modelling
bmunkholm Aug 29, 2025
ef495b9
Move Going Further in index to match GitBook
bmunkholm Aug 29, 2025
908e867
Update timeseries with content from Gitbook
bmunkholm Aug 29, 2025
198fa7f
Added vector modeling content from Gitbook
bmunkholm Aug 29, 2025
8fc8021
relational.md updated with content from GitBook
bmunkholm Sep 2, 2025
0d6a691
Update Geospatial with Gitbook content
bmunkholm Sep 2, 2025
12c45c7
Updated global references and removed seperators
bmunkholm Sep 2, 2025
5660a1f
Merge branch 'main' into data-modelling2
bmunkholm Sep 2, 2025
16167b6
Fix link in geospatial
bmunkholm Sep 2, 2025
856eab9
Updated modelling/Vector from AI gen to working.
bmunkholm Sep 5, 2025
289c309
Fix errors in modelling/relational
bmunkholm Sep 5, 2025
6200969
Updaterd modelling/json to at least be correct.
bmunkholm Sep 5, 2025
6118413
Minor fixed in modeling/geospatial
bmunkholm Sep 5, 2025
c3bcc0c
formatting & fixes.
bmunkholm Sep 5, 2025
e73ff3d
Fixed modelling/fulltext
bmunkholm Sep 8, 2025
2f87497
Minor fixes
bmunkholm Sep 8, 2025
095dbe5
line wrap fix
bmunkholm Sep 8, 2025
7222aad
wording and reference updates
bmunkholm Sep 8, 2025
5addf40
Fixes from Coderabbit feedback
bmunkholm Sep 8, 2025
1f565ba
Coderabbit fixes and minor adjustments of primary-key page in modelling
bmunkholm Sep 8, 2025
65dd655
small fixes in timeseries
bmunkholm Sep 9, 2025
6df493a
remove advanced use-cases from timeseries.
bmunkholm Sep 9, 2025
3e52799
Add default now() to `created_at` column
surister Sep 10, 2025
9f46dca
Small fix on index off
surister Sep 10, 2025
c38a1f9
fix hallucination
surister Sep 10, 2025
f09f42c
object is dynamic by default
surister Sep 10, 2025
3339e7c
remove unnecessary line
surister Sep 10, 2025
d9e420b
Use `event` table consistently
surister Sep 10, 2025
5a3a849
minor tweak
surister Sep 10, 2025
afb38cb
remove 'schema explosion' its confusing
surister Sep 10, 2025
65010db
tweak comment on object fields
surister Sep 10, 2025
e64c022
improve consistency
surister Sep 10, 2025
ab28efa
improve consistency again
surister Sep 10, 2025
7243df9
minor tweak
surister Sep 10, 2025
3a59299
Add `devices_info` table definition to timeseries page
karynzv Sep 10, 2025
0caa1b4
Merge branch 'main' into data-modelling2
bmunkholm Sep 10, 2025
9ccf253
fixed bug in reference
bmunkholm Sep 10, 2025
2a1e24e
Minor fixes in json modelling
bmunkholm Sep 10, 2025
7b5ec7b
wording in vector.md
bmunkholm Sep 10, 2025
d8e29e5
Remove references to UUID4
surister Sep 11, 2025
d5cfb99
enum example table name
bmunkholm Sep 11, 2025
9973fe5
fix index reference to model-promary-key
bmunkholm Sep 11, 2025
bddacdb
revert fix.
bmunkholm Sep 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/start/modelling/primary-key.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ CREATE TABLE example (
- Can result in gaps
- Collisions possible if multiple records are created in the same millisecond

## Using UUIDv4 identifiers
## Using elasticflake identifiers

This option involves declaring a column using `DEFAULT gen_random_text_uuid()`.
```psql
CREATE TABLE example2 (
CREATE TABLE example (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@surister It's intentional that I enumerate the table names where we redefine or evolve table definitions. This makes it more practical to copy/paste and test examples, and makes it clear to readers which tables we refer to afterwards.

id TEXT DEFAULT gen_random_text_uuid() PRIMARY KEY
);
```
Expand Down Expand Up @@ -218,7 +218,7 @@ db.close()
| Strategy | Ordered | Unique | Scalable | Human-friendly | Range queries | Notes |
|---------------------|----------| ------ | -------- |----------------|---------------| -------------------- |
| Timestamp | ✅ | ⚠️ | ✅ | ✅ | ✅ | Potential collisions |
| UUIDv4 | ❌ | ✅ | ✅ | ❌ | ❌ | Default UUIDs |
| Elasticflake | ❌ | ✅ | ✅ | ❌ | ❌ | Default UUIDs |
| UUIDv7 | ✅ | ✅ | ✅ | ❌ | ✅ | Requires UDF |
| External system IDs | ✅/❌ | ✅ | ✅ | ✅ | ✅ | Depends on source |
| Sequence table | ✅ | ✅ | ⚠️ | ✅ | ✅ | Manual retry logic |
Expand Down
Loading