Skip to content

Commit 2d45b62

Browse files
committed
extended the readme
1 parent 802842f commit 2d45b62

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,11 @@ iex(3)> Label.load(m, true)
201201
%Label{color: nil, name: nil}
202202
```
203203

204-
The background is that MongoDB always returns binarys as keys and structs use atoms as keys. For more information look at the module documentation [Mongo.Collection](https://hexdocs.pm/mongodb_driver/Mongo.Collection.html#content)
204+
The background is that MongoDB always returns binarys as keys and structs use atoms as keys.
205+
206+
For more information look at the module documentation [Mongo.Collection](https://hexdocs.pm/mongodb_driver/Mongo.Collection.html#content).
207+
208+
Of course, using the `Mongo.Collection` is not free. When loading and saving, the maps are converted into structures, which increases CPU usage somewhat. When it comes to speed, it is better to use the maps directly.
205209

206210
## Usage
207211

0 commit comments

Comments
 (0)