datomic

Ask questions on the official Q&A site at https://ask.datomic.com!
cjsauer 2021-04-16T01:11:48.308900Z

Is there a secret namespace that one can access for parsing pull expressions into an AST?

1👍
souenzzo 2021-04-16T16:56:40.315300Z

https://github.com/souenzzo/eql-datomic/

1👏
cjsauer 2021-04-16T23:38:37.320300Z

Very nice! Thanks!

favila 2021-04-16T01:24:32.309500Z

It’s not perfect, it doesn’t understand some attribute option syntax

cjsauer 2021-04-16T01:33:33.309700Z

That is really close. I see it treats parameters differently, but only slightly.

kenny 2021-04-16T01:44:30.310700Z

We write our queries in eql and have a transform function to convert ast to Datomic syntax.

cjsauer 2021-04-16T02:02:09.310900Z

Nice, that’s a good approach.

tatut 2021-04-16T05:58:23.313700Z

interesting, thanks

tatut 2021-04-16T05:58:43.313900Z

but isn’t the first one not a good benchmark, as map returns lazy seq

1😅
2021-04-16T12:41:15.315Z

You're absolutely right. I knew something was up.

souenzzo 2021-04-16T16:56:40.315300Z

https://github.com/souenzzo/eql-datomic/

1👏
adamtait 2021-04-16T23:24:54.319400Z

Could you use the cognitect-labs/aws-api and fire the DDB scaler from the process that starts the batch job? Maybe you could even wait on the scaling completed. I do something similar to start up an expensive EC2 instance running a web driver just before my crawler starts. The aws-api call to start the EC2 instance blocks waiting for the instance to finish starting.

1☝️
cjsauer 2021-04-16T23:38:37.320300Z

Very nice! Thanks!