You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SqlDoubles, SqlInt32s and SqlInt64s are given to postgres in binary form.
Some arrays that are used for this are reused in executeMany, so it gets a little faster than mapM_ execute.
There is a new benchmarking executable (buildable with -fbuildbenchmarks) that benchmarks mapM_ execute vs. executeMany.
There are new quickcheck properties, mainly for testing readFromDB . writeToDB == id.
Somewhat unrelated to executeMany: I switched to hexadecimal format for giving and retrieving bytestrings to and from postgres. This fixes one (at least perceived) bug that the quickcheck properties exposed: Now you can write and read any SqlByteString to postgres as a bytea without dealing with escaping or en-/decoding. Feedback on this is very welcome.
Currently,
executeMany
is simply a call toreplicateM execute
. This could be optimised.The text was updated successfully, but these errors were encountered: