Skip to content

Add surreal-fs resource to README#111

Open
hviana wants to merge 1 commit into
surrealdb:mainfrom
hviana:patch-1
Open

Add surreal-fs resource to README#111
hviana wants to merge 1 commit into
surrealdb:mainfrom
hviana:patch-1

Conversation

@hviana
Copy link
Copy Markdown

@hviana hviana commented Apr 14, 2026

Added surreal-fs entry to the list of SurrealDB resources.

Added surreal-fs entry to the list of SurrealDB resources.
@nickchomey
Copy link
Copy Markdown

looks interesting. how does this differ from using surreal's native file buckets? https://surrealdb.com/docs/surrealql/functions/database/file

@hviana
Copy link
Copy Markdown
Author

hviana commented Apr 14, 2026

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/

@nickchomey
Copy link
Copy Markdown

Would be super cool to have this native in surrealdb rather than (seemingly) just JS

@hviana
Copy link
Copy Markdown
Author

hviana commented Apr 15, 2026

You're right. I suggested: surrealdb/surrealdb#7267

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants