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: README.md
+1-91
Original file line number
Diff line number
Diff line change
@@ -1,37 +1,8 @@
1
-
# ⚠️ IMPORTANT NEWS! 📰
2
-
3
-
I’ve been dealing with CQRS, event-sourcing and DDD long enough now that I don’t need working with it anymore unfortunately, so at least for now this my formal farewell!
4
-
5
-
I want to thank everyone who has contributed in one way or another.
6
-
Especially...
7
-
8
-
-[Jan](https://github.com/jamuhl), who introduced me to this topic.
9
-
-[Dimitar](https://github.com/nanov), one of the last bigger contributors and maintainer.
10
-
- My last employer, who gave me the possibility to use all these CQRS modules in a big Cloud-System.
11
-
- My family and friends, who very often came up short.
12
-
13
-
Finally, I would like to thank [Golo Roden](https://github.com/goloroden), who was there very early at the beginning of my CQRS/ES/DDD journey and is now here again to take over these modules.
14
-
15
-
Golo Roden is the founder, CTO and managing director of [the native web](https://www.thenativeweb.io/), a company specializing in native web technologies. Among other things, he also teaches CQRS/ES/DDD etc. and based on his vast knowledge, he brought wolkenkit to life.
16
-
[wolkenkit](https://wolkenkit.io) is a CQRS and event-sourcing framework based on Node.js. It empowers you to build and run scalable distributed web and cloud services that process and store streams of domain events.
17
-
18
-
With this step, I can focus more on [i18next](https://www.i18next.com), [locize](https://locize.com) and [localistars](https://localistars.com). I'm happy about that. 😊
19
-
20
-
So, there is no end, but the start of a new phase for my CQRS modules. 😉
21
-
22
-
I wish you all good luck on your journey.
23
-
24
-
Who knows, maybe we'll meet again in a github issue or PR at [i18next](https://github.com/i18next/i18next) 😉
This is a fork of `thenativeweb/node-viewmodel` since the latter was deprecated.
35
6
Node-viewmodel is a node.js module for multiple databases.
36
7
It can be very useful if you work with (d)ddd, cqrs, eventdenormalizer, host, etc.
37
8
@@ -248,7 +219,6 @@ Make shure you have installed the required driver, in this example run: 'npm ins
248
219
currently supported by:
249
220
- inmemory
250
221
- mongodb
251
-
- elasticsearch6
252
222
253
223
254
224
## mongodb
@@ -281,61 +251,6 @@ For mongodb you can define indexes for performance boosts in find function.
281
251
## redis
282
252
The find function does ignore the query argument and always fetches all items in the collection.
283
253
284
-
## Elasticsearch >= 5.X
285
-
Use the 'elasticsearch6' type for Elasticsearch versions 5.X and 6.X.
286
-
287
-
The find queries are not mongoDb compatible as the rest of the implementations due to the uneeded overhead and complexity of converting between both formats.
288
-
289
-
For find queries with elasticsearch6 use elasticsearch [native elastic Query DSL](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html);
Additionaly for elasticsearch6 the number of shards, number of replicas, the refresh behaivour on index and the mappings on index create can be addtionaly defined to optimize performace.
313
-
314
-
```javascript
315
-
var dummyRepo =repository.extend({
316
-
collectionName:'dummy',
317
-
repositorySettings: {
318
-
elasticsearch6: {
319
-
refresh:'wait_for', // optional, refresh behaviour on index, default is true ( ie. force index refresh ) https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-refresh.html
320
-
waitForActiveShards:2// optional, defaults to 1 ( ie. wait only for primary ) https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html#create-index-wait-for-active-shards
321
-
index: { // optional applied on index create, https://www.elastic.co/guide/en/elasticsearch/reference/6.x/indices-create-index.html
322
-
settings : { // will be merged with the default ones,
323
-
number_of_shards:3, // optional defaults to 1,
324
-
number_of_replicas:1// optional defaults to 0,
325
-
},
326
-
mappings : { // optiona will be merged with the default ones,
327
-
properties: { // specific properties to not be handled by dynamic mapper
0 commit comments