forked from litedb-org/LiteDB
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
84 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
<test timeout="60s" filename="test-01.db" delete="true"> | ||
<!--<setup>CREATE INDEX idx_01 ON col1($.name);</setup>--> | ||
<insert tasks="5" collection="col1" autoId="objectId" docs="1000~1000" sleep="10ms"> | ||
<fullName type="name" /> | ||
<age type="int" range="8~75" /> | ||
<ticket type="guid" /> | ||
<active type="bool" /> | ||
<createDate type="now" /> | ||
<updateDate type="date" range="1960-01-01~2018-12-31" /> | ||
<jsonData>{ myItem: 'abc', array: [1, 2, 3] }</jsonData> | ||
</insert> | ||
<task name="CHECKPOINT" sleep="10s">CHECKPOINT</task> | ||
<task name="COUNT" sleep="1s">SELECT COUNT(*._id) FROM col1</task> | ||
<task name="SIZE" sleep="1s">SELECT { data: FORMAT(dataFileSize, 'n0'), log: FORMAT(logFileSize, 'n0') } FROM $database</task> | ||
<!--<setup>CREATE INDEX idx_01 ON col1($.name);</setup>--> | ||
<insert tasks="5" collection="col1" autoId="objectId" docs="100~500" sleep="10ms"> | ||
<fullName type="name" /> | ||
<age type="int" range="8~75" /> | ||
<ticket type="guid" /> | ||
<active type="bool" /> | ||
<createDate type="now" /> | ||
<updateDate type="date" range="1960-01-01~2018-12-31" /> | ||
<jsonData>{ myItem: 'abc', array: [1, 2, 3] }</jsonData> | ||
</insert> | ||
<task name="UPDATE" sleep="8s">UPDATE col1 SET name = UPPER(name), large=LPAD(name, RANDOM(50, 3000), 'x')</task> | ||
<task name="DELETE" sleep="45s">DELETE col1 WHERE 1 = 1</task> | ||
<task name="CHECKPOINT" sleep="10s">CHECKPOINT</task> | ||
<task name="COUNT" sleep="1s">SELECT COUNT(*) FROM col1</task> | ||
<task name="SIZE" sleep="1s">SELECT { data: FORMAT(dataFileSize, 'n0'), log: FORMAT(logFileSize, 'n0') } FROM $database</task> | ||
</test> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<test timeout="60s" filename="test-01.db" delete="true"> | ||
<insert collection="col1" autoId="objectId" docs="100~500" sleep="0ms"> | ||
<fullName type="name" /> | ||
<age type="int" range="8~75" /> | ||
</insert> | ||
<insert collection="col2" autoId="objectId" docs="100~500" sleep="0ms"> | ||
<fullName type="name" /> | ||
<age type="int" range="8~75" /> | ||
</insert> | ||
<insert collection="col3" autoId="objectId" docs="100~500" sleep="0ms"> | ||
<fullName type="name" /> | ||
<age type="int" range="8~75" /> | ||
</insert> | ||
<insert collection="col4" autoId="objectId" docs="100~500" sleep="0ms"> | ||
<fullName type="name" /> | ||
<age type="int" range="8~75" /> | ||
</insert> | ||
<insert collection="col5" autoId="objectId" docs="100~500" sleep="0ms"> | ||
<fullName type="name" /> | ||
<age type="int" range="8~75" /> | ||
</insert> | ||
</test> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters