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
so i'm working on a document database. currently i'm using jsonschema which feels familiar but has terrible performance.
its validation is also way too constrained
instead i'm now looking at cue and kcl. kcl seems to be a natural fit because you can store the compiled schema into the db.
with cue the best i could replace "schemas" with is by having a not yet concrete value exported as AST. This seems extremely inefficient? I'd have to load the AST every time someone puts a concrete document into the db.
Maybe i'm not thinking about cue right yet. maybe someone has a super genious idea how to make this fit, or maybe abusing cue like this just isnt a good idea
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
so i'm working on a document database. currently i'm using jsonschema which feels familiar but has terrible performance.
its validation is also way too constrained
instead i'm now looking at cue and kcl. kcl seems to be a natural fit because you can store the compiled schema into the db.
with cue the best i could replace "schemas" with is by having a not yet concrete value exported as AST. This seems extremely inefficient? I'd have to load the AST every time someone puts a concrete document into the db.
Maybe i'm not thinking about cue right yet. maybe someone has a super genious idea how to make this fit, or maybe abusing cue like this just isnt a good idea
Beta Was this translation helpful? Give feedback.
All reactions