Created
July 23, 2012 09:23
-
-
Save siosio/3162792 to your computer and use it in GitHub Desktop.
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
-------------------------------------------------------------------------------- | |
-- count(*) | |
-------------------------------------------------------------------------------- | |
18:18:19 SQL> select count(*) from message; | |
COUNT(*) | |
---------- | |
17718 | |
経過: 00:00:00.04 | |
実行計画 | |
---------------------------------------------------------- | |
Plan hash value: 2159657772 | |
------------------------------------------------------------------------------- | |
| Id | Operation | Name | Rows | Cost (%CPU)| Time | | |
------------------------------------------------------------------------------- | |
| 0 | SELECT STATEMENT | | 1 | 68 (0)| 00:00:01 | | |
| 1 | SORT AGGREGATE | | 1 | | | | |
| 2 | INDEX FAST FULL SCAN| SYS_C00167450 | 15875 | 68 (0)| 00:00:01 | | |
------------------------------------------------------------------------------- | |
Note | |
----- | |
- dynamic sampling used for this statement (level=2) | |
統計 | |
---------------------------------------------------------- | |
428 recursive calls | |
0 db block gets | |
366 consistent gets | |
0 physical reads | |
0 redo size | |
447 bytes sent via SQL*Net to client | |
420 bytes received via SQL*Net from client | |
2 SQL*Net roundtrips to/from client | |
6 sorts (memory) | |
0 sorts (disk) | |
1 rows processed | |
-------------------------------------------------------------------------------- | |
-- count(1) | |
-------------------------------------------------------------------------------- | |
18:18:48 SQL> select count(1) from message; | |
COUNT(1) | |
---------- | |
17718 | |
経過: 00:00:00.01 | |
実行計画 | |
---------------------------------------------------------- | |
Plan hash value: 2159657772 | |
------------------------------------------------------------------------------- | |
| Id | Operation | Name | Rows | Cost (%CPU)| Time | | |
------------------------------------------------------------------------------- | |
| 0 | SELECT STATEMENT | | 1 | 68 (0)| 00:00:01 | | |
| 1 | SORT AGGREGATE | | 1 | | | | |
| 2 | INDEX FAST FULL SCAN| SYS_C00167450 | 15875 | 68 (0)| 00:00:01 | | |
------------------------------------------------------------------------------- | |
Note | |
----- | |
- dynamic sampling used for this statement (level=2) | |
統計 | |
---------------------------------------------------------- | |
428 recursive calls | |
0 db block gets | |
366 consistent gets | |
0 physical reads | |
0 redo size | |
447 bytes sent via SQL*Net to client | |
420 bytes received via SQL*Net from client | |
2 SQL*Net roundtrips to/from client | |
6 sorts (memory) | |
0 sorts (disk) | |
1 rows processed | |
-------------------------------------------------------------------------------- | |
-- count(rowid) | |
-------------------------------------------------------------------------------- | |
18:19:29 SQL> select count(rowid) from message; | |
COUNT(ROWID) | |
------------ | |
17718 | |
経過: 00:00:00.04 | |
実行計画 | |
---------------------------------------------------------- | |
Plan hash value: 2159657772 | |
--------------------------------------------------------------------------------------- | |
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | | |
--------------------------------------------------------------------------------------- | |
| 0 | SELECT STATEMENT | | 1 | 12 | 68 (0)| 00:00:01 | | |
| 1 | SORT AGGREGATE | | 1 | 12 | | | | |
| 2 | INDEX FAST FULL SCAN| SYS_C00167450 | 15875 | 186K| 68 (0)| 00:00:01 | | |
--------------------------------------------------------------------------------------- | |
Note | |
----- | |
- dynamic sampling used for this statement (level=2) | |
統計 | |
---------------------------------------------------------- | |
428 recursive calls | |
0 db block gets | |
366 consistent gets | |
0 physical reads | |
0 redo size | |
451 bytes sent via SQL*Net to client | |
420 bytes received via SQL*Net from client | |
2 SQL*Net roundtrips to/from client | |
6 sorts (memory) | |
0 sorts (disk) | |
1 rows processed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment