Open Tigrov opened 4 weeks ago
It is not necessary to bind null, bool, int and float, these values can be converted to an unquoted string.
Expect this to improve performance slightly.
Why do you think so?
@xepozz about these being unnecessary or about performance?
About unnecessary binding for null
, bool
, etc
Well, it might be good to bind it for database optimizer but security-wise binding is not needed.
It is not necessary to bind null, bool, int and float, these values can be converted to an unquoted string. Expect this to improve performance slightly.
Why do you think so?
I'm just wondering why should changing q=select ?, ?, ?, p=[null,1,true]
to q=select null, 1, true, p=[]
improve performance?
Anyway, we can test it
We can reduce the number of binding parameters by binding only values that need to be quoted (
string
andbinary
values). It is not necessary to bindnull
,bool
,int
andfloat
, these values can be converted to an unquoted string.Expect this to improve performance slightly.
Related issue