@nxgt/mongo-meilisearch 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -303,6 +303,10 @@ Each is a `@ts-expect-error` case in this package's type tests.
|
|
|
303
303
|
- **The sync owns its index.** A reindex removes every document the
|
|
304
304
|
collection does not give it, whoever wrote it. Do not point two
|
|
305
305
|
collections, or another writer, at one index.
|
|
306
|
+
- **A reindex holds one id per live document in memory**, and then pages the
|
|
307
|
+
whole index to find what to remove (`reindex.ts`). On a collection of
|
|
308
|
+
millions that is hundreds of megabytes and a full index scan, so a reindex
|
|
309
|
+
is a deployment step and not something to run per request.
|
|
306
310
|
- **A change may be applied twice.** Changes after the last recorded point
|
|
307
311
|
are sent again after a restart or a failure. Keep the transform a function
|
|
308
312
|
of the document alone.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxgt/mongo-meilisearch",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Keeps a Meilisearch index in step with a MongoDB collection: a typed transform, a full reindex, and a change stream that resumes where it stopped",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@nxgt/meilisearch": "^0.1.0",
|
|
52
|
-
"@nxgt/mongo": "^0.12.
|
|
52
|
+
"@nxgt/mongo": "^0.12.1",
|
|
53
53
|
"@types/bun": "^1.4.0",
|
|
54
54
|
"meilisearch": "0.62.0",
|
|
55
55
|
"mongodb": "7.6.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@nxgt/meilisearch": "^0.1.0",
|
|
61
|
-
"@nxgt/mongo": "^0.12.
|
|
61
|
+
"@nxgt/mongo": "^0.12.1",
|
|
62
62
|
"meilisearch": ">=0.62.0 <1",
|
|
63
63
|
"mongodb": ">=7.0.0 <8",
|
|
64
64
|
"typescript": "^6.0.3"
|