bloom-housing / bloom

component-based web framework for affordable housing management
Apache License 2.0
34 stars 24 forks source link

[Spike] : Investigate Prisma Client Extensions (PCE) #4296

Open YazeedLoonat opened 2 weeks ago

YazeedLoonat commented 2 weeks ago

We want to investigate Prisma Client Extensions (PCE): https://www.prisma.io/docs/orm/prisma-client/client-extensions

what we would like to do is build a custom query (or set of queries) to "update" supporting records as in-place as possible

if we take Listing -> Listing Events as our example: we want to build a custom extension such that:

the way it currently works is we delete all listing events and then re-create them. PCE might be able to reduce that churn and hopefully make the process easier, or at least more legible