Fork me on GitHub
#biff
<
2022-10-21
>
macrobartfast20:10:07

I’m making something to store my dad’s blood pressure readings; how should I store the time it was taken? Do I rely on XTDB’s time feature or should I explicitly send it from the UI? What are the schema implications? UPDATE: I realize I can just use xtdb’s time feature… however, I can imagine it might not make it to a server from the web app and maybe I’d have to involve local storage (but that’s preemptive optimization at this point).

Jacob O'Bryant21:10:04

xtdb stuff is relevant here too :) In this case I would probably store the time explicitly in its own attribute. although you can infer the time by looking up the document's valid time, it's slower and less convenient. if you're not immediately planning to do anything with the time but might want to use it in the future, relying on xtdb's valid time is fine