fireproof-storage / fireproof

Realtime database, runs anywhere. Install Fireproof in your front-end app or edge function, and sync data via any backend.
https://fireproof.storage
Other
220 stars 16 forks source link

add attachments #8

Closed jchris closed 10 months ago

jchris commented 10 months ago

this allows saving and loading of File objects

jchris commented 10 months ago

how much work would it be to sidecar them so they don't slow down initial app load times? since the file() method is async, we can get the car file for the attachment then.

this would mean we need to keep the attachment car in the attachment doc, and we can't compact attachments easily, but maybe worth it. We can put all files from same bulk update into one car.

Which means there's a good reason to expose bulk at the db layer, b/c a multi file upload can become a single car

jchris commented 10 months ago

LFG

Screen Shot 2023-08-24 at 11 02 03 PM