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: docs/api/databases/common.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,18 @@ Disabling or changing the default pagination is not available in the client. Onl
102
102
103
103
</BlockQuote>
104
104
105
+
## Bulk updates
106
+
107
+
Some database adapters allow to set the `params.bulk` option to perform fast `create`, `patch` or `remove` operations for a large amount of data. Setting `params.bulk = true` will always return no data (an empty array `[]`) and not send any real-time events.
108
+
109
+
```ts
110
+
const manyTodos =awaitreadCSVFile('todos.csv')
111
+
112
+
awaitapp.service('todos').create(manyTodos, {
113
+
bulk: true
114
+
}) // -> []
115
+
```
116
+
105
117
## Extending Adapters
106
118
107
119
There are two ways to extend existing database adapters. Either by extending the base class or by adding functionality through hooks.
0 commit comments