datascript
Advanced tools
Changelog
0.13.0
datascript.core
, not datascript
datascript.core
(internal namespace) was renamed to datascript.db
datascript.shim
(internal namespace) was renamed to datascript.arrays
Motivations:
Migration procedure:
(require '[datascript :as d])
to (require '[datascript.core :as d])
and you’re good to go.For the sake of easy migration, there’re no other changes in this release. Just renamings.
Changelog
0.12.2
contains?
is called with an entity (PR #114, thx Kevin Lynagh)Changelog
0.12.0
[ BREAKING ] Introducing new :db/index
schema attribute:
Attributes are not put to AVET by default anymore
Following attributes are put to AVET:
:db/index true
:db/unique :db.unique/identity
:db/unique :db.unique/value
:db/valueType :db.type/ref
All attributes put to AVET should be comparable. Note: maps and list are not comparable by default, vectors are compared value-by-value
[ BREAKING ] Min/max aggregation functions will only work on a comaparable values
Benefits:
:db/index
and do not make it :db.cardinality/many
Caveats:
:db/index
attribute, but it’ll be slowerMigration procedure:
datoms
, seek-datoms
calls with :avet
index, and index-range
call[?free-var <constant-attr> <constant-value>]
:db/index true
in the schemaChangelog
0.11.6
pull
, pull_many
, entity
(#94, thx Matt Senior)Changelog
0.11.5
This release brings a significant performance boost for JVM version of DataScript (numbers are in comparison to JS/v8 version):
transact
: ~3 times fasterinit-db
: ~3–4 times fasterChangelog
0.11.4
Experimental support for Clojure on JVM:
sorted-set
instead of BTSetget
lookup in queryinit-db
Performance numbers so far (raw data):
transact
: ~3.5–4 times fasterinit-db
: ~2–2.5 times slowerequiv
: ~5 times slowerhash
: ~10 times slowerChangelog
0.11.2
*.cljc
sources do not conflict with Clojure now. Code compiles under [lein-cljsbuild "1.0.6"]