标签:性能 ase 图片 history 很多 ctrl blank with jar
在高并发情况下,in memory模式下h2的性能要远高于sqlite(单线程下,还是sqlite高很多),当前版本MVStore作为H2的默认存储引擎。
安装h2 windows版本
C:\Program Files (x86)\H2\bin>java -cp h2-1.4.200.jar org.h2.tools.Shell Welcome to H2 Shell 1.4.200 (2019-10-14) Exit with Ctrl+C [Enter] jdbc:h2:~/test URL jdbc:h2:d:/test/h2db [Enter] org.h2.Driver Driver [Enter] User sa Password Type the same password again to confirm database creation. Password Connected Commands are case insensitive; SQL statements end with ‘;‘ help or ? Display this help list Toggle result list / stack trace mode maxwidth Set maximum column width (default is 100) autocommit Enable or disable autocommit history Show the last 20 statements quit or exit Close the connection and exit
完整的SQL可以点击下列HELP:
总的来说,h2的bug还是挺多的、open状态的bug其实也不少,可以参见https://github.com/h2database/h2database/issues。
标签:性能 ase 图片 history 很多 ctrl blank with jar
原文地址:https://www.cnblogs.com/zhjh256/p/12238663.html