提交 d9568981 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 6e0c5153
...@@ -9,6 +9,7 @@ package org.h2.test; ...@@ -9,6 +9,7 @@ package org.h2.test;
import java.sql.SQLException; import java.sql.SQLException;
import java.util.Properties; import java.util.Properties;
import org.h2.Driver;
import org.h2.engine.Constants; import org.h2.engine.Constants;
import org.h2.store.fs.FileSystemDisk; import org.h2.store.fs.FileSystemDisk;
import org.h2.test.bench.TestPerformance; import org.h2.test.bench.TestPerformance;
...@@ -285,34 +286,8 @@ java org.h2.test.TestAll timer ...@@ -285,34 +286,8 @@ java org.h2.test.TestAll timer
remove emergencyReserve? remove emergencyReserve?
build.sh from mac (test in Ubuntu) build.sh from mac (test in Ubuntu)
test.sql
good:
select documents.*, 'this is a test' as snippet
from documents, document_text
where
document_text.id in (select substring(search.query, locate('=',
search.query) + 1) from ftl_search('+nelson +"drip pan"', 500, 0)
search)
and documents.id = document_text.doc_id
and source_id in (3, 2, 4, 1)
limit 500
bad:
select documents.*, 'this is a test' as snippet
from document_text, documents
where
document_text.id in (select substring(search.query, locate('=',
search.query) + 1) from ftl_search('+nelson +"drip pan"', 500, 0)
search)
and documents.id = document_text.doc_id
and source_id in (3, 2, 4, 1)
limit 500
split files (1 GB max size) split files (1 GB max size)
study SQLite file format
multithreaded kernel multithreaded kernel
remove old TODO remove old TODO
...@@ -671,6 +646,7 @@ http://www.w3schools.com/sql/ ...@@ -671,6 +646,7 @@ http://www.w3schools.com/sql/
* a TCP server if the test uses remote connections. * a TCP server if the test uses remote connections.
*/ */
void beforeTest() throws SQLException { void beforeTest() throws SQLException {
Driver.load();
DeleteDbFiles.execute(TestBase.baseDir, null, true); DeleteDbFiles.execute(TestBase.baseDir, null, true);
FileSystemDisk.getInstance().deleteRecursive("trace.db"); FileSystemDisk.getInstance().deleteRecursive("trace.db");
if (networked) { if (networked) {
......
...@@ -118,7 +118,7 @@ public class TestOpenClose extends TestBase implements DatabaseEventListener { ...@@ -118,7 +118,7 @@ public class TestOpenClose extends TestBase implements DatabaseEventListener {
conn.createStatement().execute("drop table employee if exists"); conn.createStatement().execute("drop table employee if exists");
conn.createStatement().execute("create table employee(id int primary key, name varchar, salary int)"); conn.createStatement().execute("create table employee(id int primary key, name varchar, salary int)");
conn.close(); conn.close();
int len = this.getSize(200, 4000); int len = this.getSize(200, 1000);
Thread[] threads = new Thread[len]; Thread[] threads = new Thread[len];
for (int i = 0; i < len; i++) { for (int i = 0; i < len; i++) {
threads[i] = new Thread() { threads[i] = new Thread() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论