⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 staleplans.out

📁 derby database source code.good for you.
💻 OUT
📖 第 1 页 / 共 4 页
字号:
Noneij> commit;ij> -- Now increase the size of the tableinsert into t1 values (2, 100, PADSTRING('abc',255));1 row inserted/updated/deletedij> insert into t1 values (3, 100, PADSTRING('abc',255));1 row inserted/updated/deletedij> insert into t1 values (4, 100, PADSTRING('abc',255));1 row inserted/updated/deletedij> insert into t1 values (5, 100, PADSTRING('abc',255));1 row inserted/updated/deletedij> insert into t1 values (6, 100, PADSTRING('abc',255));1 row inserted/updated/deletedij> insert into t1 values (7, 100, PADSTRING('abc',255));1 row inserted/updated/deletedij> insert into t1 values (8, 100, PADSTRING('abc',255));1 row inserted/updated/deletedij> insert into t1 values (9, 100, PADSTRING('abc',255));1 row inserted/updated/deletedij> insert into t1 values (10, 100, PADSTRING('abc',255));1 row inserted/updated/deletedij> commit;ij> -- Make sure row count from inserts is flushed outselect count(c1) from flusher;1          -----------64         ij> -- Execute 11 times, the plan should changeexecute s1;1          -----------1          ij> execute s1;1          -----------1          ij> execute s1;1          -----------1          ij> execute s1;1          -----------1          ij> execute s1;1          -----------1          ij> execute s1;1          -----------1          ij> execute s1;1          -----------1          ij> execute s1;1          -----------1          ij> execute s1;1          -----------1          ij> execute s1;1          -----------1          ij> execute s1;1          -----------1          ij> -- Expect this to use indexvalues SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS();1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Statement Name: 	nullStatement Text: 	select count(c1 + c2) from t1 where c1 = 1Parse Time: 0Bind Time: 0Optimize Time: 0Generate Time: 0Compile Time: 0Execute Time: 0Begin Compilation Timestamp : nullEnd Compilation Timestamp : nullBegin Execution Timestamp : nullEnd Execution Timestamp : nullStatement Execution Plan Text: Project-Restrict ResultSet (5):Number of opens = 1Rows seen = 1Rows filtered = 0restriction = falseprojection = true	constructor time (milliseconds) = 0	open time (milliseconds) = 0	next time (milliseconds) = 0	close time (milliseconds) = 0	restriction time (milliseconds) = 0	projection time (milliseconds) = 0Source result set:	Scalar Aggregate ResultSet:	Number of opens = 1	Rows input = 1		constructor time (milliseconds) = 0		open time (milliseconds) = 0		next time (milliseconds) = 0		close time (milliseconds) = 0	Index Key Optimization = false	Source result set:		Project-Restrict ResultSet (4):		Number of opens = 1		Rows seen = 1		Rows filtered = 0		restriction = false		projection = true			constructor time (milliseconds) = 0			open time (milliseconds) = 0			next time (milliseconds) = 0			close time (milliseconds) = 0			restriction time (milliseconds) = 0			projection time (milliseconds) = 0		Source result set:			Index Row to Base Row ResultSet for T1:			Number of opens = 1			Rows seen = 1			Columns accessed from heap = {0, 1}				constructor time (milliseconds) = 0				open time (milliseconds) = 0				next time (milliseconds) = 0				close time (milliseconds) = 0				Index Scan ResultSet for T1 using index T1X at read committed isolation level using instantaneous share row locking chosen by the optimizer				Number of opens = 1				Rows seen = 1				Rows filtered = 0				Fetch Size = 16					constructor time (milliseconds) = 0					open time (milliseconds) = 0					next time (milliseconds) = 0					close time (milliseconds) = 0					next time in milliseconds/row = 0				scan information: 					Bit set of columns fetched=All					Number of columns fetched=2					Number of deleted rows visited=0					Number of pages visited=1					Number of rows qualified=1					Number of rows visited=2					Scan type=btree					Tree height=1					start position: 	>= on first 1 column(s).	Ordered null semantics on the following columns: 					stop position: 	> on first 1 column(s).	Ordered null semantics on the following columns: 					qualifiers:Noneij> commit;ij> -- Now shrink the table back to its original sizedelete from t1 where c1 >= 2;9 rows inserted/updated/deletedij> commit;ij> -- Make sure row count from inserts is flushed outselect count(c1) from flusher;1          -----------64         ij> -- Execute 11 times, the plan should changeexecute s1;1          -----------1          ij> execute s1;1          -----------1          ij> execute s1;1          -----------1          ij> execute s1;1          -----------1          ij> execute s1;1          -----------1          ij> execute s1;1          -----------1          ij> execute s1;1          -----------1          ij> execute s1;1          -----------1          ij> execute s1;1          -----------1          ij> execute s1;1          -----------1          ij> execute s1;1          -----------1          ij> -- Expect this to do a table scanvalues SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS();1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Statement Name: 	nullStatement Text: 	select count(c1 + c2) from t1 where c1 = 1Parse Time: 0Bind Time: 0Optimize Time: 0Generate Time: 0Compile Time: 0Execute Time: 0Begin Compilation Timestamp : nullEnd Compilation Timestamp : nullBegin Execution Timestamp : nullEnd Execution Timestamp : nullStatement Execution Plan Text: Project-Restrict ResultSet (5):Number of opens = 1Rows seen = 1Rows filtered = 0restriction = falseprojection = true	constructor time (milliseconds) = 0	open time (milliseconds) = 0	next time (milliseconds) = 0	close time (milliseconds) = 0	restriction time (milliseconds) = 0	projection time (milliseconds) = 0Source result set:	Scalar Aggregate ResultSet:	Number of opens = 1	Rows input = 1		constructor time (milliseconds) = 0		open time (milliseconds) = 0		next time (milliseconds) = 0		close time (milliseconds) = 0	Index Key Optimization = false	Source result set:		Project-Restrict ResultSet (4):		Number of opens = 1		Rows seen = 1		Rows filtered = 0		restriction = false		projection = true			constructor time (milliseconds) = 0			open time (milliseconds) = 0			next time (milliseconds) = 0			close time (milliseconds) = 0			restriction time (milliseconds) = 0			projection time (milliseconds) = 0		Source result set:			Index Row to Base Row ResultSet for T1:			Number of opens = 1			Rows seen = 1			Columns accessed from heap = {0, 1}				constructor time (milliseconds) = 0				open time (milliseconds) = 0				next time (milliseconds) = 0				close time (milliseconds) = 0				Index Scan ResultSet for T1 using index T1X at read committed isolation level using instantaneous share row locking chosen by the optimizer				Number of opens = 1				Rows seen = 1				Rows filtered = 0				Fetch Size = 16					constructor time (milliseconds) = 0					open time (milliseconds) = 0					next time (milliseconds) = 0					close time (milliseconds) = 0					next time in milliseconds/row = 0				scan information: 					Bit set of columns fetched=All					Number of columns fetched=2					Number of deleted rows visited=0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -