Fork me on GitHub
#xtdb
<
2020-08-03
>
plexus08:08:02

For folks who are interested in Datalog databases in general please come and hang out with us over at #datalog

👍 6
quadron09:08:28

what is the best way of storing a byte array in crux?

jarohen10:08:04

I'm afraid we don't yet support byte arrays as values - it's issue https://github.com/juxt/crux/issues/864

refset10:08:33

^ yep, we don't officially support byte arrays as a native value type currently, but we are thinking of adding first-class support at some point. In the meantime I believe you can wrap a byte array in some container Java object and Nippy will do its magic https://github.com/juxt/crux/blob/master/crux-core/src/crux/codec.clj#L214 The downside to this approach is that the values won't be sorted in the indexes. May I ask what kinds of byte data you are hoping to store?

quadron11:08:54

thanks, i'm storing cryptographic signatures

refset11:08:24

Ah okay, no need for sorting then 🙂