You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
or as a CommonJS module ([npm page](https://www.npmjs.org/package/datascript)):
@@ -259,11 +265,7 @@ Interface differences:
259
265
* Custom aggregate functions are called via aggregate keyword: `:find (aggregate ?myfn ?e) :in $ ?myfn`
260
266
* Additional `:db.fn/retractAttribute` shortcut
261
267
* Transactions are not annotated by default with `:db/txInstant`
262
-
263
-
Expected soon:
264
-
265
-
* Better error reporting
266
-
* Proper documentation
268
+
* When “transaction function” is called, the db that this function receive is a “partial db” relative to it's position in transaction.
267
269
268
270
## Differences from Datomic
269
271
@@ -272,13 +274,10 @@ Expected soon:
272
274
* Simplified schema, not queryable
273
275
* Attributes do not have to be declared in advance. Put them to schema only when you need special behaviour from them
274
276
* Any type can be used for values
275
-
* No `:db/ident` attributes, keywords are _literally_ attribute values, no integer id behind them
277
+
* No `:db/ident`for attributes, keywords are _literally_ attribute values, no integer id behind them
276
278
* No schema migrations
277
-
* No cache segments management, no laziness. Entire DB must reside in memory
278
-
* No facilities to persist, transfer over the wire or sync DB with the server
279
-
* No pluggable storage options, no full-text search, no partitions
279
+
* No full-text search, no partitions
280
280
* No external dependencies
281
-
* Free
282
281
283
282
Aimed at interactive, long-living browser applications, DataScript DBs operate in constant space. If you do not add new entities, just update existing ones, or clean up database from time to time, memory consumption will be limited. This is unlike Datomic which keeps history of all changes, thus grows monotonically. DataScript does not track history by default, but you can do it via your own code if needed.
0 commit comments