firestorm-db
Advanced tools
Comparing version 1.7.0 to 1.7.1
{ | ||
"name": "firestorm-db", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "Self hosted Firestore-like database with API endpoints based on micro bulk operations", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -83,3 +83,3 @@ <div align="center"> | ||
| get(id) | id: ``String\|Name`` | Tries to get one element by its key | | ||
| search(searchOptions, random) | searchOptions: ``SearchOption[]`` random?:`false|true|Number`| Searches collections and returns matching results | | ||
| search(searchOptions, random) | searchOptions: ``SearchOption[]`` random?:`false\|true\|Number`| Searches collections and returns matching results. <br>You can randomize the ouput order with random as true or a given seed. | | ||
| searchKeys(keys) | keys: ``String[] \| Number[]`` | Searches collections with given keys and returns matching results | | ||
@@ -186,2 +186,14 @@ | select(selectOption) | selectOption: ``{ field: String[] }`` | Improved read_raw with field selection | | ||
## Memory warning | ||
Handling big collections can cause memory allocation issues like : | ||
``` | ||
Fatal error: | ||
Allowed memory size of 134217728 bytes exhausted (tried to allocate 32360168 bytes) | ||
``` | ||
If you encounter a memory allocation issue, you have to allow more memory through this file ``/etc/php/7.4/apache2/php.ini`` with a bigger value here: | ||
``` | ||
memory_limit = 256M | ||
``` | ||
## API endpoints | ||
@@ -188,0 +200,0 @@ |
26170
209