📓 Notion Data Model Comparison

😇 pub: HXPM Public Issues  |   |  Print Markdown

Conceptually we have arrived at a result very similar to Notion, and it was intentional, we’re solving the same class of problem. We want structure combined with free form databases

Databases / Templates

Notion has the concept of “databases” which describe the structure of their child tasks https://developers.notion.com/docs/working-with-databases

these provide the schema and you can customise them. Any customisation of a note is just applied directly to the parent database.

you can link databases, they’ll add a foreign key relationship and enforce it for you which is lovely.

We have the very similar concept of 📝 Templates , these are a note that define the correct way to interpret the shape of every note of that type.

Differences

We’ve made the … choice, that templates are optional, and enable richer display of a set of notes, but they’re just optional. They aren’t necessary, and they must be shared between repos if you want them available everywhere.

This leads to the immediately obvious problem of the need/desire to keep them in sync. One could imagine wanting to sync templates, or, extract templates into a common shared repo that gets reused.

Pages / Notes

then there are individual pages which live within a “database” (quoted because it’s not necessarily a real db like PostgreSQL)

Ours are much closer to notions here than our databases. You can query all notes within a database/template, that all works, and see any and all properties thereof.


Metadata
Metadata
Key Value
ID PNMR-t5nJnZYj
URN urn:penemure:9cc10c76-c478-4b93-8fbd-b799c99d9623
Backend 😇 pub: HXPM Public Issues
Ancestors
📅 Created
📅 Updated
Links

Children

Queryable fields

View in API
title<a href="/penemure/note/9cc10c76-c478-4b93-8fbd-b799c99d9623.html"><span class="title">📓 Notion Data Model Comparison</span></a>
parentsurn:penemure:4d9fe953-c4d9-43d5-ba27-d86bd7d0eefe urn:penemure:a238ec94-5136-48c5-8567-7d2644fda113
version2
created_unix1739257269.745754
updated_unix1739257303.7305758
namespaceNone
typenote
id9cc10c76-c478-4b93-8fbd-b799c99d9623
urnurn:penemure:9cc10c76-c478-4b93-8fbd-b799c99d9623
url/penemure/note/9cc10c76-c478-4b93-8fbd-b799c99d9623.html
backendpub
created2025-02-11 07:01:09.745754+00:00
updated2025-02-11 07:01:43.730576+00:00
systemFalse
blurbConceptually we have arrived at a result very similar to Notion, and it was intentional, we're solving the same class of
title_plain📓 Notion Data Model Comparison
title_txtNotion Data Model Comparison
final_ancestor_titlesPenemure
parent_first_titlePenemure
ancestorsurn:penemure:4d9fe953-c4d9-43d5-ba27-d86bd7d0eefe urn:penemure:a238ec94-5136-48c5-8567-7d2644fda113