Prevent database memory cosumption by prepared statements caches (#768)
This commit is contained in:
@@ -25,6 +25,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
- Customize content negotiation per route - @begriffs
|
- Customize content negotiation per route - @begriffs
|
||||||
- Allow using nulls order without explicit order direction - @steve-chavez
|
- Allow using nulls order without explicit order direction - @steve-chavez
|
||||||
- Fatal error on postgres unsupported version, format supported version in error message - @steve-chavez
|
- Fatal error on postgres unsupported version, format supported version in error message - @steve-chavez
|
||||||
|
- Prevent database memory cosumption by prepared statements caches - @ruslantalpa
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Use HTTP 400 for raise\_exception - @begriffs
|
- Use HTTP 400 for raise\_exception - @begriffs
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ encodeUniformObjs =
|
|||||||
createReadStatement :: SqlQuery -> SqlQuery -> Bool -> Bool -> Bool ->
|
createReadStatement :: SqlQuery -> SqlQuery -> Bool -> Bool -> Bool ->
|
||||||
H.Query () ResultsWithCount
|
H.Query () ResultsWithCount
|
||||||
createReadStatement selectQuery countQuery isSingle countTotal asCsv =
|
createReadStatement selectQuery countQuery isSingle countTotal asCsv =
|
||||||
unicodeStatement sql HE.unit decodeStandard True
|
unicodeStatement sql HE.unit decodeStandard False
|
||||||
where
|
where
|
||||||
sql = [qc|
|
sql = [qc|
|
||||||
WITH {sourceCTEName} AS ({selectQuery}) SELECT {cols}
|
WITH {sourceCTEName} AS ({selectQuery}) SELECT {cols}
|
||||||
|
|||||||
Reference in New Issue
Block a user