datalevin

2024-09-09T15:39:35.592149Z

I'm trying to make a query which allows me to find all entities with a specific cardinality many attribute where that entity has more than one value for that attribute. Is there a way to do this query without resorting to sub-queries which tank my performance? e.g.

(q '[:find ?e
     :in $
     :where
     [?e :many-item ?i1]
     [?e :many-item ?i2]
     [(not= ?i1 ?i2)]])
I've tried this and it doesn't appear to work, I'm wondering if I'm just missing something

Huahai 2024-09-09T17:17:28.486859Z

This should be a bug. I will take a look.

2024-09-09T17:17:45.274419Z

thanks!

Huahai 2024-09-09T17:28:15.824269Z

https://github.com/juji-io/datalevin/issues/272

2024-10-03T11:16:22.533279Z

Awesome, thanks!

Huahai 2024-10-03T04:51:26.443449Z

Fixed

2024-09-09T20:49:40.619649Z

Is it safe to open a db with a different schema than it was created with if there's data inside it? Specifically, adding new fields which were not previously inserted into? Or would I need to open two dbs with different schemas, then load the datoms from one into the other?

Huahai 2024-09-10T05:33:16.966899Z

Yes

2024-09-10T12:59:22.668929Z

Thanks!