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
Copy file name to clipboardExpand all lines: etc/docs/DATATYPES.md
+10-9Lines changed: 10 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ await collection.insertOne({
73
73
### BigNumbers
74
74
75
75
> **NOTE**
76
-
> Enabling BigNumbers support for a collection will force a slower, bignum-friendly JSON library to be used for all documents in that collection. The difference should be negligible for most use-cases.
76
+
> Enabling bigints/BigNumbers support for a collection will force a slower, bignum-friendly JSON library to be used for all documents in that collection. The difference should be negligible for most use-cases.
77
77
78
78
Proper big-number support is still under works in `astra-db-ts`, but a rough version is out currently.
79
79
@@ -244,28 +244,28 @@ A variety of scalar types, however, are represented by custom `astra-db-ts`-prov
244
244
### BigNumbers
245
245
246
246
> **NOTE**
247
-
> Enabling BigNumbers support for a collection will force a slower, bignum-friendly JSON library to be used for all documents in that collection. The difference should be negligible for most use-cases.
247
+
> Using bigints/BigNumbers in a table will force a slower, bignum-friendly JSON library to be used for all documents in that collection. The difference should be negligible for most use-cases.
248
248
249
249
Unlike collections, `bigint`s & `BigNumber`s are supported completely and natively in tables; you don't need to enable any special options to use them.
250
250
251
251
The performance penalty still applies, however, but it's only in play when there's actually a `bigint` or `BigNumber` present in the object.
252
252
253
253
While you may technically pass any of `number`, `bigint`, or `BigNumber` to the database, it'll be read back as:
254
-
- a `bigint` if the column is a `varint`
254
+
- a `bigint` if the column is a `varint`, `bigint`, or `counter`
0 commit comments