Re: [capnproto] Dynamic schemas

2023-09-19 Thread Jonathan Shapiro
Hi, Kenton! > I suppose the first question is: Does your database actually need to > understand the dynamic fields at all? Or does it just need to be able to > echo them back to the client later on, with only the client actually > understanding them? > Yes. It needs to be able to index them and

Re: [capnproto] Dynamic schemas

2023-09-18 Thread 'Kenton Varda' via Cap'n Proto
Hi Jonathan, I suppose the first question is: Does your database actually need to understand the dynamic fields at all? Or does it just need to be able to echo them back to the client later on, with only the client actually understanding them? If only the client really needs to know about them, t

[capnproto] Dynamic schemas

2023-09-17 Thread Jonathan Shapiro
We're working on multiple applications with dynamic schemas: schemas where customers need to be able to add or delete fields to meet their particular requirements. This sort of thing impacts both the database layer and the wire schema. I can think of an implementation that doesn't suck (see below),