2026-03-12 20:23:15
This commit is contained in:
25
tpt/aot/system_ts_writes.sql
Normal file
25
tpt/aot/system_ts_writes.sql
Normal file
@@ -0,0 +1,25 @@
|
||||
-- Copyright 2018 Tanel Poder. All rights reserved. More info at http://tanelpoder.com
|
||||
-- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions.
|
||||
|
||||
DROP TABLE t1 PURGE;
|
||||
DROP TABLE t2 PURGE;
|
||||
|
||||
SET ECHO ON
|
||||
|
||||
CREATE TABLE t1(a INT) TABLESPACE users;
|
||||
CREATE TABLE t2(a INT) TABLESPACE system;
|
||||
|
||||
ALTER SYSTEM SWITCH LOGFILE;
|
||||
ALTER SYSTEM CHECKPOINT;
|
||||
|
||||
PAUSE
|
||||
|
||||
SET TIMING ON
|
||||
|
||||
EXEC FOR i IN 1..300000 LOOP INSERT INTO t1 VALUES(i); END LOOP;
|
||||
|
||||
ALTER SYSTEM CHECKPOINT;
|
||||
|
||||
EXEC FOR i IN 1..300000 LOOP INSERT INTO t2 VALUES(i); END LOOP;
|
||||
|
||||
SET TIMING OFF ECHO OFF
|
||||
Reference in New Issue
Block a user