@@ -28,7 +28,7 @@ defmodule Ecto.Repo do
2828 to the adapter. For this particular example, you can check
2929 [`Ecto.Adapters.Postgres`](https://hexdocs.pm/ecto_sql/Ecto.Adapters.Postgres.html)
3030 for more information. In spite of this, the following configuration values
31- are shared across all adapters:
31+ are common across all adapters:
3232
3333 * `:name`- The name of the Repo supervisor process
3434
@@ -46,6 +46,14 @@ defmodule Ecto.Repo do
4646 * `:pool_size` - the size of the pool used by the connection module.
4747 Defaults to `10`
4848
49+ * `:pool_count` - the number of pools to run concurrently,
50+ increase this option when the pool itself may be under contention.
51+ When running multiple pools, queries are randomly routed to different
52+ pools, without taking into account how many connections are available
53+ in each. So in some circumstances, you may be routed to a fully busy
54+ pool while others have connections available. The overall number of
55+ connections used will be `pool_size * pool_count`. Defaults to `1`
56+
4957 * `:telemetry_prefix` - we recommend adapters to publish events
5058 using the [Telemetry](`:telemetry`) library. By default, the telemetry prefix
5159 is based on the module name, so if your module is called
@@ -1591,7 +1599,8 @@ defmodule Ecto.Repo do
15911599 @ doc group: "Schema API"
15921600 @ callback insert_all (
15931601 schema_or_source :: binary ( ) | { binary ( ) , module ( ) } | module ( ) ,
1594- entries_or_query :: [ % { ( atom ( ) | String . t ( ) ) => value } | Keyword . t ( value ) ] | Ecto.Query . t ( ) ,
1602+ entries_or_query ::
1603+ [ % { ( atom ( ) | String . t ( ) ) => value } | Keyword . t ( value ) ] | Ecto.Query . t ( ) ,
15951604 opts :: Keyword . t ( )
15961605 ) :: { non_neg_integer ( ) , nil | [ term ( ) ] }
15971606 when value: term ( ) | Ecto.Query . t ( )
0 commit comments