Re:YDB – An open-source Distributed SQL Database
by ranguna on Wednesday April 20, 2022 @03:01AM
(#31093667)
Try looking at cockroachDB, the only thing holding me back on that is the absence of triggers.
Re:YDB – An open-source Distributed SQL Database
by SomeCallMeTim on Monday April 25, 2022 @02:22PM
(#31158732)
It was a brain fart: Meant to say CockroachDB instead of CouchBase. Oops.
So yeah, it's on my short list. :) I've used triggers in one project recently, but that was literally the first time in five years so it's not as much of a must-have for me.
Re:YDB – An open-source Distributed SQL Database
by reactor on Tuesday April 19, 2022 @08:40PM
(#31091356)
I guess its depends, for many use cases, it can be managed at application level. I've parted ways with FK for a long time since it created more hassles than it solved esp when it comes to sharding and replications.
Re:YDB – An open-source Distributed SQL Database
by SomeCallMeTim on Tuesday April 19, 2022 @10:17PM
(#31092025)
You can always handle it at the application level.
The trick is that it's better to have the extra guard rails. And all of Couchbase, Yugabase, and Citus support foreign keys even with sharding and replication, so that's not an issue when the DB supports it.
Re:YDB – An open-source Distributed SQL Database
by SomeCallMeTim on Monday April 25, 2022 @02:20PM
(#31158703)
I said Couchbase above but meant CockroachDB. Brain fart, but can't edit the message now. :|
Re:YDB – An open-source Distributed SQL Database
by keredson on Tuesday April 19, 2022 @05:16PM
(#31089323)
that's very common in distributed databases. even traditional databases, it's very common to not have FKs on large tables, and just handle it in software. indexing billions or more of rows is non-trivial.
Re:YDB – An open-source Distributed SQL Database
by fomichev3000 on Wednesday April 20, 2022 @05:52AM
(#31094611)
Foreign keys come at a cost, especially in distributed database. It's just a fact. If you can avoid them, it's great.
Re:YDB – An open-source Distributed SQL Database
by MichaelMoser123 on Tuesday April 19, 2022 @07:41PM
(#31090843)
didn't notice that. Wow that's pretty basic...
Back to looking at Couchbase, Yugabase, or Citus for my distributed SQL.