Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Fixed performance regression caused by treating all numbers as numerics #231

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

njeuk
Copy link
Contributor

@njeuk njeuk commented Aug 29, 2017

Change 90e4194 switched the types used for numbers in PreparedStatements to always be ColumnType.Numeric.

This causes an order of magnitude performance degradation, as shown by the test in this PR, also discussed in #179

The effect of reverting this change means that you cannot create a prepared statement using say integer types and then start passing doubles to it. Which would be a pretty dubious practice to do anyway!

@oshai
Copy link

oshai commented Sep 17, 2018

I fixed/reverted this in jasync-sql(fork) 0.8.30: jasync-sql/jasync-sql#16 . more details in the issue: jasync-sql/jasync-sql#15

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants