github.com/cockroachdb/pebble@v1.1.2/testdata/scan_statistics (about)

     1  
     2  reset
     3  ----
     4  
     5  batch commit
     6  set b d
     7  set e foo
     8  ----
     9  committed 2 keys
    10  
    11  scan-statistics lower=b upper=f keys=(SET)
    12  ----
    13  Aggregate:
    14    SET key count: 2
    15    SET latest count: 2
    16  
    17  flush
    18  ----
    19  
    20  scan-statistics lower=b upper=e keys=(SET) levels=(0)
    21  ----
    22  Level 0:
    23    SET key count: 1
    24    SET latest count: 1
    25  Aggregate:
    26    SET key count: 1
    27    SET latest count: 1
    28  
    29  scan-statistics lower=b upper=f keys=(SET) levels=(0)
    30  ----
    31  Level 0:
    32    SET key count: 2
    33    SET latest count: 2
    34  Aggregate:
    35    SET key count: 2
    36    SET latest count: 2
    37  
    38  scan-statistics lower=f upper=l keys=(SET)
    39  ----
    40  Aggregate:
    41    SET key count: 0
    42  
    43  batch commit
    44  del b
    45  del e
    46  ----
    47  committed 2 keys
    48  
    49  flush
    50  ----
    51  
    52  scan-statistics lower=b upper=f keys=(SET, DEL) levels=(0)
    53  ----
    54  Level 0:
    55    SET key count: 2
    56    DEL key count: 2
    57    DEL latest count: 2
    58  Aggregate:
    59    SET key count: 2
    60    DEL key count: 2
    61    DEL latest count: 2
    62  
    63  reset
    64  ----
    65  
    66  batch commit
    67  set b hi
    68  ----
    69  committed 1 keys
    70  
    71  flush
    72  ----
    73  
    74  batch commit
    75  set b hello
    76  ----
    77  committed 1 keys
    78  
    79  flush
    80  ----
    81  
    82  compact a-z
    83  ----
    84  6:
    85    000008:[b#0,SET-b#0,SET]
    86  
    87  scan-statistics lower=b upper=f keys=(SET) levels=(6)
    88  ----
    89  Level 6:
    90    SET key count: 1
    91    SET latest count: 1
    92  Aggregate:
    93    SET key count: 1
    94    SET latest count: 1
    95  
    96  batch commit
    97  set c a
    98  ----
    99  committed 1 keys
   100  
   101  flush
   102  ----
   103  
   104  scan-statistics lower=b upper=f keys=(SET) levels=(0, 6)
   105  ----
   106  Level 0:
   107    SET key count: 1
   108    SET latest count: 1
   109  Level 6:
   110    SET key count: 1
   111    SET latest count: 1
   112  Aggregate:
   113    SET key count: 2
   114    SET latest count: 2
   115  
   116  reset
   117  ----
   118  
   119  batch commit
   120  set a b
   121  ----
   122  committed 1 keys
   123  
   124  flush
   125  ----
   126  
   127  snapshot name=first
   128  ----
   129  
   130  batch commit
   131  set a c
   132  ----
   133  committed 1 keys
   134  
   135  flush
   136  ----
   137  
   138  compact a-z
   139  ----
   140  6:
   141    000008:[a#11,SET-a#0,SET]
   142  
   143  scan-statistics lower=a upper=z show-snapshot-pinned
   144  ----
   145  Aggregate:
   146    snapshot pinned count: 1