Fork me on GitHub
#xtdb
<
2020-06-30
>
Vincent Cantin09:06:54

When we want to migrate some documents from an SQL db to Crux where the primary key is an integer, what is the recommended way to tranlate the IDs? Another question: the type listed in https://opencrux.com/docs#transactions-valid-ids are pretty uncommon. Is there a reason why strings and numbers are not supported?

jarohen09:06:38

Hi @vincent.cantin, Fortunately, they're both coming in the next release - the PR was merged to master late last week 🙂

🎉 18
Vincent Cantin10:06:42

I guess that for now the way to go is to use maps as IDs, e.g. #crux/id {:product/id 12345}

👍 6