Prevent database memory cosumption by prepared statements caches (#768)

This commit is contained in:
Ruslan Talpa
2016-12-09 09:46:28 -08:00
committed by Joe Nelson
parent 0d85152e42
commit 15c95399f8
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -25,6 +25,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Customize content negotiation per route - @begriffs
- Allow using nulls order without explicit order direction - @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
- Use HTTP 400 for raise\_exception - @begriffs
+1 -1
View File
@@ -93,7 +93,7 @@ encodeUniformObjs =
createReadStatement :: SqlQuery -> SqlQuery -> Bool -> Bool -> Bool ->
H.Query () ResultsWithCount
createReadStatement selectQuery countQuery isSingle countTotal asCsv =
unicodeStatement sql HE.unit decodeStandard True
unicodeStatement sql HE.unit decodeStandard False
where
sql = [qc|
WITH {sourceCTEName} AS ({selectQuery}) SELECT {cols}