JDBC Connection Parameter (useServerPrepStmts)

902 views
Skip to first unread message

Matthew Buckett

unread,
Jun 23, 2016, 1:04:55 PM6/23/16
to sakai-dev
On: 

https://confluence.sakaiproject.org/display/DOC/Sakai+Admin+Guide+-+Database+Configuration+and+Tuning

there is a section "Query Caching" where it recommends turning off server prepared statements to improve performance. The additional parameters recommended are:

useServerPrepStmts=false&cachePrepStmts=true&prepStmtCacheSize=4096&prepStmtCacheSqlLimit=4096

does anyone still run with these? One issue with useServerPrepStmts=false is that it means that you can't upload anything into MySQL larger than max_alllowed_packet as the work we do streaming blobs fails when you don't have serverside prepared statement enabled.


There are some references to serverside prepared statements having problems:


The MariaDB connector looks to support them:


--
  Matthew Buckett, VLE Developer, IT Services, University of Oxford
Reply all
Reply to author
Forward
0 new messages