Local Only Mode #883
Replies: 7 comments 2 replies
-
Hi @MentalGear, I will let @thruflo answer your pgvector question as he has a better viewpoint on our roadmap. |
Beta Was this translation helpful? Give feedback.
-
Hey, how would you like to use pgvector? |
Beta Was this translation helpful? Give feedback.
-
Thanks for getting back, I appreciate it! Local-Mode As I think about it, it'd be great if you had a page on the docs for this kind of "local-mode starter setup". Local Storage Considerations pg_vector |
Beta Was this translation helpful? Give feedback.
-
The app will run in local-mode if it fails to reach Electric (i.e. the server).
SQLite stores the DB as a single file on disk, so you are bound by the maximum file size. For Electric apps running in the browser, we currently use wa-sqlite and configured it to use IndexedDB as the virtual file system. Storage limits for IndexedDB are browser-specific and are described here: https://developer.mozilla.org/en-US/docs/Web/API/Storage_API/Storage_quotas_and_eviction_criteria#Storage_limits |
Beta Was this translation helpful? Give feedback.
-
There's some devil in the detail here relating to type mapping, autogenerated queries etc. So you can't just swap in a VM-based WASM PG. However, we have been working on this, or more specifically @balegas and @tachyonicbytes have been working on this, in a slightly different configuration. We have a public #wasm-and-rust channel on the Discord if you'd like to say hi there / discuss more. |
Beta Was this translation helpful? Give feedback.
-
any movement on this? thanks |
Beta Was this translation helpful? Give feedback.
-
a precision tho, |
Beta Was this translation helpful? Give feedback.
-
First of all: Very impressive work, looking forward to add this into our techstack. Thank you!
I'm currently building a small browser extension and, before I add any remote server sync/storage, I'd like to start small and only save data locally. Is it possible to use electric without a server pg backend - so it runs completely local ?
PS: would it also be possible to use pgvector with electric?
Beta Was this translation helpful? Give feedback.
All reactions