File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ defmodule Registry do
2121 the `:via` option), storing properties, custom dispatching rules, or a pubsub
2222 implementation. We explore some of those use cases below.
2323
24- The registry may also be transparently partitioned, which provides
25- more scalable behavior for running registries on highly concurrent
24+ The registry may also be transparently partitioned with the `:partitions` option,
25+ which provides more scalable behavior for running registries on highly concurrent
2626 environments with thousands or millions of entries.
2727
2828 ## Using in `:via`
@@ -1488,8 +1488,9 @@ defmodule Registry do
14881488 that reference the underlying entry structure via `:"$_"` will return different results.
14891489 Use named variables like `:"$1"`, `:"$2"`, `:"$3"` instead.
14901490
1491- Note that for large registries with many partitions this will be costly as it builds the result by
1492- concatenating all the partitions.
1491+ Note that for registries with many partitions, the result of each partition is concatenated.
1492+ Therefore selecting thousands of entries across partitions may become an expensive operation
1493+ and we recommend profiling/benchmarking whenever selecting too many entries.
14931494
14941495 ## Examples
14951496
You can’t perform that action at this time.
0 commit comments