Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I hope SurrealDB becomes mainstream.

RDBMS haven't evolved at all for a very long time but only doing minor incremental improvements and consumers have to turn to complex queries as the principle never changes. It's time we get something more modern.

- It has web UI to handle data.

- It can write logic with JS (The more logic in DB the better.)

- Can write a lot like SQL but way more powerful.

- Receive real time updates.

- Incremental backups.

https://surrealdb.com/

(Many examples on the landing page.)

https://github.com/surrealdb/surrealdb

https://news.ycombinator.com/item?id=32550543



> It can write logic with JS (The more logic in DB the better.)

why the more logic in DB the better?

It's not visible to all devs, we can't put it in git, we can't write unit tests for the same!


You can put it in git by writing the defined functions in a file.

You may use DB migration tools to run those.

It's better because logics in DB cannot be bypassed. If you write a logic or check in, say PHP, and part of your app is run in NodeJS, you have to duplicate those checks and logics. It even works when you interact with the database manually with some GUI tools which prevents you from manually inserting bad data.


> It can write logic with JS

You mean Javascript? If we are looking to make progress, then we shouldn't use those outdated (despite widely distributed) languages.


It is JavaScript.

I'd say less learning curve the better adoption.

What do you suggest as a good language to use here?


With that attitude we would stick to assembly forever though. I don't know the exact requirements, but I have a hard time imaging that Javascript is a great choice, except for how many people know it.


Surreal looks good; I checked it a few times. I was wondering if the Rust is compiled to wasm, given surreal supports offline/online data sync, could it be used in the browser and app as an offline solution? Like pouch/couch? As that’s what most solutions are missing for the projects we do.


Don't know much about WASM but it's being talked about in another thread.

https://news.ycombinator.com/item?id=32550543 (Search for wasm and browser)

And here.

https://github.com/surrealdb/surrealdb/discussions/1275


They are gonna eat xata.io's lunch, xata is dreadfully overpriced.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: