elixir-ecto / db_connection

Database connection behaviour
http://hexdocs.pm/db_connection/DBConnection.html
309 stars 112 forks source link

Handle :caller option in shared/automatic mode when caller has not used proxy #110

Closed fishcakez closed 6 years ago

fishcakez commented 6 years ago

Its possible parallel preloads to occur using explicit preloading when the calling process has not used the Ecto sandbox so does not have an associated proxy. In this situation (automatic/shared) the caller should gain ownership or an allowance on a proxy and the preloading process use would then use that proxy for its query.