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

     1  reset
     2  ----
     3  
     4  # Use the key string as the value so that it's easy to tell when we surface the
     5  # wrong value.
     6  
     7  batch commit
     8  set a a
     9  set b b
    10  set c c
    11  set d d
    12  range-key-set b   c   @5 boop
    13  range-key-set cat dog @3 beep
    14  ----
    15  committed 6 keys
    16  
    17  flush
    18  ----
    19  
    20  # Scan forward
    21  
    22  combined-iter
    23  stats
    24  seek-ge a
    25  next
    26  stats
    27  next
    28  next
    29  next
    30  next
    31  stats
    32  ----
    33  stats: seeked 0 times (0 internal); stepped 0 times (0 internal)
    34  a: (a, .)
    35  b: (b, [b-c) @5=boop UPDATED)
    36  stats: seeked 1 times (1 internal); stepped 1 times (2 internal); blocks: 0B cached, 89B not cached (read time: 0s); points: 2 (2B keys, 2B values), range keys: 1, contained points: 1 (0 skipped)
    37  c: (c, . UPDATED)
    38  cat: (., [cat-dog) @3=beep UPDATED)
    39  d: (d, [cat-dog) @3=beep)
    40  .
    41  stats: seeked 1 times (1 internal); stepped 5 times (6 internal); blocks: 0B cached, 89B not cached (read time: 0s); points: 4 (4B keys, 4B values), range keys: 2, contained points: 2 (0 skipped)
    42  
    43  # Do the above forward iteration but with a mask suffix. The results should be
    44  # identical despite range keys serving as masks, because none of the point keys
    45  # have suffixes.
    46  
    47  combined-iter mask-suffix=@9
    48  seek-ge a
    49  next
    50  next
    51  next
    52  next
    53  next
    54  stats
    55  ----
    56  a: (a, .)
    57  b: (b, [b-c) @5=boop UPDATED)
    58  c: (c, . UPDATED)
    59  cat: (., [cat-dog) @3=beep UPDATED)
    60  d: (d, [cat-dog) @3=beep)
    61  .
    62  stats: seeked 1 times (1 internal); stepped 5 times (6 internal); blocks: 89B cached; points: 4 (4B keys, 4B values), range keys: 2, contained points: 2 (0 skipped)
    63  
    64  # Scan backward
    65  
    66  combined-iter
    67  seek-lt z
    68  prev
    69  prev
    70  prev
    71  prev
    72  prev
    73  stats
    74  ----
    75  d: (d, [cat-dog) @3=beep UPDATED)
    76  cat: (., [cat-dog) @3=beep)
    77  c: (c, . UPDATED)
    78  b: (b, [b-c) @5=boop UPDATED)
    79  a: (a, . UPDATED)
    80  .
    81  stats: seeked 1 times (0 fwd/1 rev, internal: 0 fwd/1 rev); stepped 5 times (0 fwd/5 rev, internal: 0 fwd/6 rev); blocks: 89B cached; points: 4 (4B keys, 4B values), range keys: 2, contained points: 2 (0 skipped)
    82  
    83  combined-iter
    84  seek-ge ace
    85  seek-ge b
    86  seek-ge c
    87  seek-ge cab
    88  seek-ge cat
    89  seek-ge d
    90  seek-ge day
    91  seek-ge dog
    92  stats
    93  ----
    94  b: (b, [b-c) @5=boop UPDATED)
    95  b: (b, [b-c) @5=boop)
    96  c: (c, . UPDATED)
    97  cat: (., [cat-dog) @3=beep UPDATED)
    98  cat: (., [cat-dog) @3=beep)
    99  d: (d, [cat-dog) @3=beep)
   100  day: (., [cat-dog) @3=beep)
   101  .
   102  stats: seeked 8 times (6 internal); stepped 0 times (4 internal); blocks: 89B cached; points: 4 (4B keys, 4B values), range keys: 2, contained points: 3 (0 skipped)
   103  
   104  combined-iter
   105  seek-lt 1
   106  seek-lt ace
   107  seek-lt b
   108  seek-lt c
   109  seek-lt cab
   110  seek-lt cat
   111  seek-lt d
   112  seek-lt day
   113  seek-lt dog
   114  seek-lt zebra
   115  stats
   116  ----
   117  .
   118  a: (a, .)
   119  a: (a, .)
   120  b: (b, [b-c) @5=boop UPDATED)
   121  c: (c, . UPDATED)
   122  c: (c, .)
   123  cat: (., [cat-dog) @3=beep UPDATED)
   124  d: (d, [cat-dog) @3=beep)
   125  d: (d, [cat-dog) @3=beep)
   126  d: (d, [cat-dog) @3=beep)
   127  stats: seeked 10 times (0 fwd/10 rev, internal: 0 fwd/10 rev); stepped 0 times (0 fwd/0 rev, internal: 0 fwd/10 rev); blocks: 267B cached; points: 15 (15B keys, 15B values), range keys: 2, contained points: 6 (0 skipped)
   128  
   129  rangekey-iter
   130  first
   131  next
   132  next
   133  set-bounds lower=bat upper=catatonic
   134  first
   135  next
   136  next
   137  stats
   138  ----
   139  b [b-c) @5=boop UPDATED
   140  cat [cat-dog) @3=beep UPDATED
   141  .
   142  .
   143  bat [bat-c) @5=boop UPDATED
   144  cat [cat-catatonic) @3=beep UPDATED
   145  .
   146  stats: seeked 2 times (2 internal); stepped 4 times (4 internal), range keys: 4, contained points: 0 (0 skipped)