Skip to content

Commit 1ed8dd7

Browse files
author
Илья
committed
Slo
1 parent e9a5181 commit 1ed8dd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

slo-workload/src/Commands/RunCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ protected function readJob(string $endpoint, string $path, $tableName, int $init
185185
$dataGenerator = new DataGenerator($initialDataCount);
186186
$query = sprintf(Defaults::READ_QUERY, $tableName);
187187
$table = $ydb->table();
188-
$table->query("SELECT 1;");
188+
$table->createSession();
189189

190190
while (microtime(true) <= $startTime + $time) {
191191
$begin = microtime(true);
@@ -223,7 +223,7 @@ protected function writeJob(string $endpoint, string $path, $tableName, int $ini
223223
$dataGenerator = new DataGenerator($initialDataCount);
224224
$query = sprintf(Defaults::WRITE_QUERY, $tableName);
225225
$table = $ydb->table();
226-
$table->query("SELECT 1;");
226+
$table->createSession();
227227
while (microtime(true) <= $startTime + $time) {
228228
$begin = microtime(true);
229229
Utils::metricsStart("write", $this->queueId);

0 commit comments

Comments
 (0)