2012-07-25 2 views
0

재생 (1.2.4) + mysql을 통해 대량 삽입을 최적화하려고합니다. 내가 JDBC 구성에 다음을 추가하는 방법에 대한 이야기 ​​일부 게시물 (연결 문자열에 추가) 본 : useServerPrepStmts을 = false를 & rewriteBatchedStatements = 사실 & useCompression = 사실 내가 할 노력했습니다rewriteBatchedStatements를 play, hibernate 및 mysql로 ​​변경하십시오.

:

db=mysql://[email protected]/data?useServerPrepStmts=false&rewriteBatchedStatements=true&useCompression=true 

... // : 나는 또한 dB = JDBC를 사용하려고

A database error occured : Cannot connected to the database, The connection property 'useCompression' only accepts values of the form: 'true', 'false', 'yes' or 'no'. The value 'true?useUnicode=yes' is not in this set. 

: MySQL의

는하지만이 오류가

아직 운이 없습니다. 내가 무엇이 누락 되었습니까? (물음표로 시작) 매개 변수의 현재 두 세트가 무효로 끝

?useUnicode=yes&characterEncoding=UTF-8&connectionCollation=utf8_general_ci 

그래서 난 당신의 연결 문자열을 추측하고있다 :

답변

0

재생이 자동으로 다음과 MySQL의 연결 문자열을 추가합니다.

불행히도 Play 코드의 해당 부분은 DBPlugin 클래스에서 매우 하드 코딩되어 있습니다. 즉, 이러한 방식으로 옵션을 추가 할 수 없습니다. 나중 단계에서 옵션을 변경하는 방법을 찾아야합니다.