github.com/cockroachdb/pebble@v0.0.0-20231214172447-ab4952c5f87b/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: (interface (dir, seek, step): (fwd, 0, 0), (rev, 0, 0)), (internal (dir, seek, step): (fwd, 0, 0), (rev, 0, 0))
    34  a: (a, .)
    35  b: (b, [b-c) @5=boop UPDATED)
    36  stats: (interface (dir, seek, step): (fwd, 1, 1), (rev, 0, 0)), (internal (dir, seek, step): (fwd, 1, 2), (rev, 0, 0)),
    37  (internal-stats: (block-bytes: (total 89B, cached 0B, read-time 0s)), (points: (count 2, key-bytes 2B, value-bytes 2B, tombstoned 0))),
    38  (range-key-stats: (count 1), (contained points: (count 1, skipped 0)))
    39  c: (c, . UPDATED)
    40  cat: (., [cat-dog) @3=beep UPDATED)
    41  d: (d, [cat-dog) @3=beep)
    42  .
    43  stats: (interface (dir, seek, step): (fwd, 1, 5), (rev, 0, 0)), (internal (dir, seek, step): (fwd, 1, 6), (rev, 0, 0)),
    44  (internal-stats: (block-bytes: (total 89B, cached 0B, read-time 0s)), (points: (count 4, key-bytes 4B, value-bytes 4B, tombstoned 0))),
    45  (range-key-stats: (count 2), (contained points: (count 2, skipped 0)))
    46  
    47  # Do the above forward iteration but with a mask suffix. The results should be
    48  # identical despite range keys serving as masks, because none of the point keys
    49  # have suffixes.
    50  
    51  combined-iter mask-suffix=@9
    52  seek-ge a
    53  next
    54  next
    55  next
    56  next
    57  next
    58  stats
    59  ----
    60  a: (a, .)
    61  b: (b, [b-c) @5=boop UPDATED)
    62  c: (c, . UPDATED)
    63  cat: (., [cat-dog) @3=beep UPDATED)
    64  d: (d, [cat-dog) @3=beep)
    65  .
    66  stats: (interface (dir, seek, step): (fwd, 1, 5), (rev, 0, 0)), (internal (dir, seek, step): (fwd, 1, 6), (rev, 0, 0)),
    67  (internal-stats: (block-bytes: (total 89B, cached 89B, read-time 0s)), (points: (count 4, key-bytes 4B, value-bytes 4B, tombstoned 0))),
    68  (range-key-stats: (count 2), (contained points: (count 2, skipped 0)))
    69  
    70  # Scan backward
    71  
    72  combined-iter
    73  seek-lt z
    74  prev
    75  prev
    76  prev
    77  prev
    78  prev
    79  stats
    80  ----
    81  d: (d, [cat-dog) @3=beep UPDATED)
    82  cat: (., [cat-dog) @3=beep)
    83  c: (c, . UPDATED)
    84  b: (b, [b-c) @5=boop UPDATED)
    85  a: (a, . UPDATED)
    86  .
    87  stats: (interface (dir, seek, step): (fwd, 0, 0), (rev, 1, 5)), (internal (dir, seek, step): (fwd, 0, 0), (rev, 1, 6)),
    88  (internal-stats: (block-bytes: (total 89B, cached 89B, read-time 0s)), (points: (count 4, key-bytes 4B, value-bytes 4B, tombstoned 0))),
    89  (range-key-stats: (count 2), (contained points: (count 2, skipped 0)))
    90  
    91  combined-iter
    92  seek-ge ace
    93  seek-ge b
    94  seek-ge c
    95  seek-ge cab
    96  seek-ge cat
    97  seek-ge d
    98  seek-ge day
    99  seek-ge dog
   100  stats
   101  ----
   102  b: (b, [b-c) @5=boop UPDATED)
   103  b: (b, [b-c) @5=boop)
   104  c: (c, . UPDATED)
   105  cat: (., [cat-dog) @3=beep UPDATED)
   106  cat: (., [cat-dog) @3=beep)
   107  d: (d, [cat-dog) @3=beep)
   108  day: (., [cat-dog) @3=beep)
   109  .
   110  stats: (interface (dir, seek, step): (fwd, 8, 0), (rev, 0, 0)), (internal (dir, seek, step): (fwd, 6, 4), (rev, 0, 0)),
   111  (internal-stats: (block-bytes: (total 89B, cached 89B, read-time 0s)), (points: (count 4, key-bytes 4B, value-bytes 4B, tombstoned 0))),
   112  (range-key-stats: (count 2), (contained points: (count 3, skipped 0)))
   113  
   114  combined-iter
   115  seek-lt 1
   116  seek-lt ace
   117  seek-lt b
   118  seek-lt c
   119  seek-lt cab
   120  seek-lt cat
   121  seek-lt d
   122  seek-lt day
   123  seek-lt dog
   124  seek-lt zebra
   125  stats
   126  ----
   127  .
   128  a: (a, .)
   129  a: (a, .)
   130  b: (b, [b-c) @5=boop UPDATED)
   131  c: (c, . UPDATED)
   132  c: (c, .)
   133  cat: (., [cat-dog) @3=beep UPDATED)
   134  d: (d, [cat-dog) @3=beep)
   135  d: (d, [cat-dog) @3=beep)
   136  d: (d, [cat-dog) @3=beep)
   137  stats: (interface (dir, seek, step): (fwd, 0, 0), (rev, 10, 0)), (internal (dir, seek, step): (fwd, 0, 0), (rev, 10, 10)),
   138  (internal-stats: (block-bytes: (total 267B, cached 267B, read-time 0s)), (points: (count 15, key-bytes 15B, value-bytes 15B, tombstoned 0))),
   139  (range-key-stats: (count 2), (contained points: (count 6, skipped 0)))
   140  
   141  rangekey-iter
   142  first
   143  next
   144  next
   145  set-bounds lower=bat upper=catatonic
   146  first
   147  next
   148  next
   149  stats
   150  ----
   151  b [b-c) @5=boop UPDATED
   152  cat [cat-dog) @3=beep UPDATED
   153  .
   154  .
   155  bat [bat-c) @5=boop UPDATED
   156  cat [cat-catatonic) @3=beep UPDATED
   157  .
   158  stats: (interface (dir, seek, step): (fwd, 2, 4), (rev, 0, 0)), (internal (dir, seek, step): (fwd, 2, 4), (rev, 0, 0)),
   159  (range-key-stats: (count 4), (contained points: (count 0, skipped 0)))