datascript 2023-02-11

I have noticed :db/id is negative. Is it standard practice to keep all id's negative?

I believe they are required to be positive, negative IDs are used temporarily in transactions until they are resolved to real ids

👍 2

Yes, negative ids are just placeholders that will be replaced with real ones. Same negative ids will have same real id after tx