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
- Some performance improvements by caching internal values.
- TLS (SSL) support.
- New `pipeline()`+`exec()` methods kindly borrowed from the [ioredis](https://github.com/redis/ioredis?tab=readme-ov-file#pipelining), which lets you to queue some commands in memory and then send them simultaneously to the server in a single (or several, if request body is too big) network call(s). Thanks to the Tarantool, which [made this possible](https://www.tarantool.io/en/doc/latest/dev_guide/internals/iproto/format/#packet-structure).
This way the performance is significantly improved by 500-1600% - you can check it by yourself running `npm run benchmark-read` or `npm run benchmark-write`.
Note that this feature doesn't replaces the Transaction model, which has some level of isolation.
- Changed `const` declaration to `var` in order to support old Node.JS versions.
Copy file name to clipboardExpand all lines: README.md
+28-4
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,7 @@ Connection related custom events:
51
51
|[options.username]| <code>string</code> | <code>null</code> | If set, client will authenticate with the value of this option when connected. |
52
52
|[options.password]| <code>string</code> | <code>null</code> | If set, client will authenticate with the value of this option when connected. |
53
53
|[options.timeout]| <code>number</code> | <code>0</code> | The milliseconds before a timeout occurs during the initial connection to the Tarantool server. |
54
+
|[options.tls]| <code>Object</code> | <code>null</code> | If specified, forces to use `tls` module instead of the default `net`. In object properties you can specify any TLS-related options, e.g. from the [tls.createSecureContext()](https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions)|
|[options.noDelay]| <code>boolean</code> | <code>true</code> | Disables the use of Nagle's algorithm (recommended). |
56
57
|[options.lazyConnect]| <code>boolean</code> | <code>false</code> | By default, When a new `Tarantool` instance is created, it will connect to Tarantool server automatically. If you want to keep disconnected util a command is called, you can pass the `lazyConnect` option to the constructor. |
You can use space name or index name instead of id, but it will some requests for get this metadata. That information actual for delete, replace, insert, update too.
197
+
You can use space name or index name instead of id, but this way some requests will be made to get and cache metadata. This stored information will be actual for delete, replace, insert, update too.
197
198
198
-
You can create space 'users' on Tarantool side, where the 'id' index is of UUID type:
199
+
For tests, we will create a Space named 'users' on the Tarantool server-side, where the 'id' index is of UUID type:
@@ -338,14 +357,19 @@ It's ok you can do whatever you need. I add log options for some technical infor
338
357
339
358
## Changelog
340
359
341
-
### 4.0.0
360
+
### 3.1.0
342
361
343
362
- Added 3 new msgpack extensions: UUID, Datetime, Decimal.
344
363
- Connection object now accepts all options of `net.createConnection()`, including Unix socket path.
345
364
- New `nonWritableHostPolicy` and related options, which improves a high availability capabilities without any 3rd parties.
346
365
- Ability to disable the offline queue.
347
366
- Fixed [bug with int32](https://github.com/tarantool/node-tarantool-driver/issues/48) numbers when it was encoded as floating. Use method `packInteger()` to solve this.
348
367
-`selectCb()` now also accepts `spaceId` and `indexId` as their String names, not only their IDs.
368
+
- Some performance improvements by caching internal values.
369
+
- TLS (SSL) support.
370
+
- New `pipeline()`+`exec()` methods kindly borrowed from the [ioredis](https://github.com/redis/ioredis?tab=readme-ov-file#pipelining), which lets you to queue some commands in memory and then send them simultaneously to the server in a single (or several, if request body is too big) network call(s). Thanks to the Tarantool, which [made this possible](https://www.tarantool.io/en/doc/latest/dev_guide/internals/iproto/format/#packet-structure).
371
+
This way the performance is significantly improved by 500-1600% - you can check it yourself by running `npm run benchmark-read` or `npm run benchmark-write`.
372
+
Note that this feature doesn't replaces the Transaction model, which has some level of isolation.
0 commit comments