Add surreal-fs resource to README#111
Conversation
Added surreal-fs entry to the list of SurrealDB resources.
|
looks interesting. how does this differ from using surreal's native file buckets? https://surrealdb.com/docs/surrealql/functions/database/file |
|
It uses a completely different logic that even allows transmission via controllable streams, allowing control over concurrency, transmission rate, calculation of storage used, etc. It doesn't save the entire file in a single record in the database. It saves it in 64kb chunks. This allows me to read the chunks on demand, enabling the control mechanisms I mentioned via stream, and also avoids overloading the RAM. It's basically a replication of the algorithm that MongoDB uses to save files in the database, GridFS: https://www.mongodb.com/pt-br/docs/manual/core/gridfs/ |
|
Would be super cool to have this native in surrealdb rather than (seemingly) just JS |
|
You're right. I suggested: surrealdb/surrealdb#7267 |
Added surreal-fs entry to the list of SurrealDB resources.