Fork me on GitHub
#crux
<
2020-10-25
>
euccastro17:10:49

I have an attribute with values that are supposed to be vectors of floats. those vectors can get biggish and I don't want crux to index each element inside should I want to query for it; I want to treat the whole vector as an opaque blob. I found that adding a level of nesting (i.e., storing it as [[1.0, 2.0, 3.0]] instead of [1.0, 2.0, 3.0] works. is this how I'm supposed to do it, or is there a more idiomatic way?

refset17:10:09

I would lean towards a map value personally, like {:my/floats [1.0, 2.0, 3.0]}, but yep either works fine 🙂

thanks2 1