Robert Stuttaford
2012-12-10 08:55:02 UTC
I have a single database which I am now breaking up into three, as these 3
parts have differing scaling and data redundancy requirements.
I want to maintain relationships between entities in these databases. I'm
guessing I can't use :db.type/ref to do this, presumably because it wants
entities that actually exist in the same database? If not, can I use
:db.type/long to store the :db/id values instead?
Separately, we're currently putting uuids (from java.util.UUID/randomUUID)
on our entities right now. Do we actually need to do this? I ask because
I'm wondering whether it'd just be simpler to pass :db/id values directly
(e.g. in url querystrings), and ensure they're cast to Long when ever
they're used in a query.
Given that I want to use multiple databases now, is it safe to assume that
:db/id values are unique across databases?
If not, and it turns out we DO need to use uuids, I'm guessing we should be
using squuid instead?
parts have differing scaling and data redundancy requirements.
I want to maintain relationships between entities in these databases. I'm
guessing I can't use :db.type/ref to do this, presumably because it wants
entities that actually exist in the same database? If not, can I use
:db.type/long to store the :db/id values instead?
Separately, we're currently putting uuids (from java.util.UUID/randomUUID)
on our entities right now. Do we actually need to do this? I ask because
I'm wondering whether it'd just be simpler to pass :db/id values directly
(e.g. in url querystrings), and ensure they're cast to Long when ever
they're used in a query.
Given that I want to use multiple databases now, is it safe to assume that
:db/id values are unique across databases?
If not, and it turns out we DO need to use uuids, I'm guessing we should be
using squuid instead?
--
-- You received this message because you are subscribed to the Google Groups Datomic group. To post to this group, send email to ***@googlegroups.com. To unsubscribe from this group, send email to datomic+***@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/datomic?hl=en
-- You received this message because you are subscribed to the Google Groups Datomic group. To post to this group, send email to ***@googlegroups.com. To unsubscribe from this group, send email to datomic+***@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/datomic?hl=en