elixir-ecto / db_connection

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

Introduce execute_many/3 #16

Closed fishcakez closed 8 years ago

fishcakez commented 8 years ago

Adds an efficient method of executing multiple queries inside a transaction.

This means we can execute any number of queries inside a transaction and not block the connection at all to log or decode. Also in postgrex it would only take 3 round trips, however many queries are executed, when wrapping with a transaction.

The caveat is that queries must be prepared beforehand.

Potential issues:

fishcakez commented 8 years ago

There are no plans to use this at present.