Results of 1 - 1 of about 1 for concurrentloop (0.000 sec.)
- Multiple Connections 9414
- For tests whose purpose is to verify that the transactional management or versioning of data works correctly, it is generally necessary to use multiple connections. For example, if we want to verify that the creation of tables is correctly
...ly on a single thread. If we want to run code from multiple connections concurrently over multiple threads, we can use the concurrentloop construct. The queries in concurrentloop will be run concurrently on separate threads at the same time. concurrentloop i 0...TEMP TABLE t2 AS (SELECT 1); statement ok INSERT INTO t2 VALUES (42); statement ok DELETE FROM t2 endloop One caveat with concurrentloop is that results are often unpredictable – as multiple clients can hammer the database at the same time we might end up wit...al with these situations. statement maybe essentially accepts both a success, and a failure with a specific error message. concurrentloop i 1 10 statement maybe CREATE OR REPLACE TABLE t2 AS (SELECT -54124033386577348004002656426531535114 FROM t2 LIMIT 70%); -... - https://man.mtool.work/duckdb/2.0/dev/sqllogictest/multiple_connections.html
PREV
1
NEXT
DuckDB 2.0 Documentation / man.mtool.work