github.com/petermattis/pebble@v0.0.0-20190905164901-ab51a2166067/testdata/ingest (about) 1 build ext0 2 set a 1 3 set b 2 4 ---- 5 6 ingest ext0 7 ---- 8 9 lsm 10 ---- 11 6: a-b 12 13 iter 14 seek-ge a 15 next 16 next 17 ---- 18 a:1 19 b:2 20 . 21 22 get 23 a 24 b 25 ---- 26 a:1 27 b:2 28 29 build ext1 30 set a 3 31 del b 32 ---- 33 34 ingest ext1 35 ---- 36 37 lsm 38 ---- 39 5: a-b 40 6: a-b 41 42 iter 43 seek-ge a 44 next 45 ---- 46 a:3 47 . 48 49 get 50 a 51 b 52 ---- 53 a:3 54 b: pebble: not found 55 56 build ext2 57 set a 4 58 set b 5 59 set c 6 60 ---- 61 62 ingest ext2 63 ---- 64 65 lsm 66 ---- 67 4: a-c 68 5: a-b 69 6: a-b 70 71 iter 72 seek-ge a 73 next 74 next 75 ---- 76 a:4 77 b:5 78 c:6 79 80 get 81 a 82 b 83 c 84 ---- 85 a:4 86 b:5 87 c:6 88 89 build ext3 90 merge b 5 91 del c 92 ---- 93 94 ingest ext3 95 ---- 96 97 lsm 98 ---- 99 3: b-c 100 4: a-c 101 5: a-b 102 6: a-b 103 104 iter 105 seek-ge a 106 next 107 next 108 ---- 109 a:4 110 b:55 111 . 112 113 get 114 a 115 b 116 c 117 ---- 118 a:4 119 b:55 120 c: pebble: not found 121 122 build ext4 123 set x 7 124 set y 8 125 ---- 126 127 ingest ext4 128 ---- 129 130 lsm 131 ---- 132 3: b-c 133 4: a-c 134 5: a-b 135 6: a-b x-y 136 137 iter 138 seek-lt y 139 prev 140 prev 141 ---- 142 x:7 143 b:55 144 a:4 145 146 get 147 x 148 y 149 ---- 150 x:7 151 y:8 152 153 batch 154 set j 9 155 set k 10 156 ---- 157 158 build ext5 159 set k 11 160 ---- 161 162 ingest ext5 163 ---- 164 165 lsm 166 ---- 167 0: j-k k-k 168 3: b-c 169 4: a-c 170 5: a-b 171 6: a-b x-y 172 173 iter 174 seek-ge j 175 next 176 ---- 177 j:9 178 k:11 179 180 get 181 j 182 k 183 ---- 184 j:9 185 k:11 186 187 batch 188 set m 12 189 ---- 190 191 build ext6 192 set n 13 193 ---- 194 195 ingest ext6 196 ---- 197 198 lsm 199 ---- 200 0: j-k k-k 201 3: b-c 202 4: a-c 203 5: a-b 204 6: a-b n-n x-y 205 206 get 207 m 208 n 209 ---- 210 m:12 211 n:13 212 213 build ext7 214 del-range a c 215 del-range x z 216 ---- 217 218 ingest ext7 219 ---- 220 221 lsm 222 ---- 223 0: j-k k-k m-m a-z 224 3: b-c 225 4: a-c 226 5: a-b 227 6: a-b n-n x-y 228 229 get 230 a 231 b 232 c 233 j 234 k 235 m 236 n 237 x 238 y 239 ---- 240 a: pebble: not found 241 b: pebble: not found 242 c: pebble: not found 243 j:9 244 k:11 245 m:12 246 n:13 247 x: pebble: not found 248 y: pebble: not found 249 250 # A set operation takes precedence over a range deletion at the same 251 # sequence number as can occur during ingestion. 252 253 build ext8 254 set j 20 255 del-range j k 256 set m 30 257 ---- 258 259 ingest ext8 260 ---- 261 262 get 263 j 264 k 265 m 266 ---- 267 j:20 268 k:11 269 m:30 270 271 build ext9 272 del-range a x 273 ---- 274 275 build ext10 276 set y 40 277 ---- 278 279 # Ingesting two files into L0 is allowed. 280 281 ingest ext9 ext10 282 ---- 283 284 get 285 j 286 k 287 m 288 y 289 ---- 290 j: pebble: not found 291 k: pebble: not found 292 m: pebble: not found 293 y:40 294 295 lsm 296 ---- 297 0: j-k k-k m-m a-z j-m a-x y-y 298 3: b-c 299 4: a-c 300 5: a-b 301 6: a-b n-n x-y