datahike

https://datahike.io/, Join the conversation at https://discord.com/invite/kEBzMvb, history for this channel is available at https://clojurians.zulipchat.com/#narrow/stream/180378-slack-archive/topic/datahike
whilo 2020-03-11T00:45:13.024700Z

Regarding the last one: If ?tr is not joined between the last two clauses then the final clause has to do a range scan for all :transaction/datetime entities.

1šŸ‘
grounded_sage 2020-03-11T06:30:32.025900Z

Any ideas on the hairy or-join query I am trying to do above? @whilo cc @konrad.kuehne

whilo 2020-03-11T18:51:34.027Z

This is the or-join issue: https://github.com/lambdaforge/datalog-parser/issues/7

whilo 2020-03-11T18:51:53.027400Z

I have stumbled on this before as well, but didn't have time to dive into it.

whilo 2020-03-11T18:53:25.029Z

So or-join is corresponding to left or right joins in SQL, depending how you use it, while an inner join happens when you use ?tr and an outer join (cartesian product) happens when you replace it by _ or some other disjoint variables.

whilo 2020-03-11T19:08:56.029400Z

But your or-join only has one branch, right?

whilo 2020-03-11T19:09:08.029600Z

@grounded_sage

grounded_sage 2020-03-11T19:10:37.029700Z

This is the one I am working on. The one below was just sharing my enjoyment for datalog šŸ™‚ @whilo

grounded_sage 2020-03-11T19:11:04.029900Z

Also above this one was another attempt to do an or join with an or pull kind of

whilo 2020-03-11T19:11:19.030100Z

This still has only one branch (the and one).

grounded_sage 2020-03-11T19:12:00.030300Z

I may have others where there is more.

grounded_sage 2020-03-11T19:12:16.030500Z

Like I have one dataset and I want to effectively enrich it with whatever else I can find.

grounded_sage 2020-03-11T19:18:13.030700Z

@whilo with the and Iā€™m not sure I fully undertsnad the or-join. It was basically there because I want to join the two which you can see with ?e2