Fork me on GitHub
#datomic
<
2017-12-11
>
favila03:12:34

“delete cascade” seems like a good way to think about it too. The same lifetime and ownership considerations exist in sql when deciding to cascade or not

favila03:12:51

Honestly if you never isComponent nothing will break. You will have to pull those refs explicitly when you want them, and deletion will orphan entities instead of retracting them

boldaslove15609:12:24

Is there any difference under the hood if I use (mapv (partial pull db pattern) eids) instead of (pull-many db pattern eids) ?

favila15:12:14

There is no semantic difference. The difference would be performance

boldaslove15604:12:14

I take it that it is something like: pull-many only do it once while (mapv pull eids) does it as many times as how many eids is there, is this right?

favila15:12:04

In theory it is possible for pull-many to have much more efficient db access patterns because it knows the full work. In practice I do not know: try it and see if it makes a difference

kennethkalmer12:12:42

I’m having issues restoring an older backup to my local dynamodb storage and I’m wondering if anyone can help? the following error is produced by dynamodb in the console: https://pastebin.com/8avZbXD7

kennethkalmer12:12:44

I originally backed up my datomic free some time ago, and now I actually need this data again and am trying to get it restored

kennethkalmer13:12:31

urgh, looks like ddb-local is completely broken now, will nuke away and restore independent backups and see how it goes

kennethkalmer14:12:33

oh snap, ok, so it seems my problem was starting ddb with the -optimizeDbBeforeStartup flag… it must have corrupted something, somehow

uwo16:12:28

debugging a “not on my box” issue. i’ve packaged an uberjar that runs its own peer, and I’ve included the sql driver in that jar, however when my colleague tries to run it they get java.sql.SQLException: No suitable driver. jar -tf shows the expected driver names on the classpath. any other obvious things I should check?

favila16:12:59

connection string?

uwo16:12:18

we’re using the same connection string. mine works there’s does not