opsqueue 0.30.3

lightweight batch processing queue for heavy loads
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
/** Disk-Space Utilization Report For opsqueue.db

Page size in bytes................................ 4096
Pages in the whole file (measured)................ 5281
Pages in the whole file (calculated).............. 5281
Pages that store data............................. 5281       100.0%
Pages on the freelist (per header)................ 0            0.0%
Pages on the freelist (calculated)................ 0            0.0%
Pages of auto-vacuum overhead..................... 0            0.0%
Number of tables in the database.................. 8
Number of indices................................. 8
Number of defined indices......................... 1
Number of implied indices......................... 7
Size of the file in bytes......................... 21630976
Bytes of user payload stored...................... 4701750     21.7%

*** Page counts for all tables with their indices *****************************

CHUNKS............................................ 5268        99.75%
_SQLX_MIGRATIONS.................................. 2            0.038%
CHUNKS_COMPLETED.................................. 2            0.038%
CHUNKS_FAILED..................................... 2            0.038%
SUBMISSIONS....................................... 2            0.038%
SUBMISSIONS_COMPLETED............................. 2            0.038%
SUBMISSIONS_FAILED................................ 2            0.038%
SQLITE_SCHEMA..................................... 1            0.019%

*** Page counts for all tables and indices separately *************************

RANDOM_CHUNKS_ORDER............................... 1941        36.8%
SQLITE_AUTOINDEX_CHUNKS_1......................... 1729        32.7%
CHUNKS............................................ 1598        30.3%
_SQLX_MIGRATIONS.................................. 1            0.019%
CHUNKS_COMPLETED.................................. 1            0.019%
CHUNKS_FAILED..................................... 1            0.019%
SQLITE_AUTOINDEX__SQLX_MIGRATIONS_1............... 1            0.019%
SQLITE_AUTOINDEX_CHUNKS_COMPLETED_1............... 1            0.019%
SQLITE_AUTOINDEX_CHUNKS_FAILED_1.................. 1            0.019%
SQLITE_AUTOINDEX_SUBMISSIONS_1.................... 1            0.019%
SQLITE_AUTOINDEX_SUBMISSIONS_COMPLETED_1.......... 1            0.019%
SQLITE_AUTOINDEX_SUBMISSIONS_FAILED_1............. 1            0.019%
SQLITE_SCHEMA..................................... 1            0.019%
SUBMISSIONS....................................... 1            0.019%
SUBMISSIONS_COMPLETED............................. 1            0.019%
SUBMISSIONS_FAILED................................ 1            0.019%

*** All tables and indices ****************************************************

Percentage of total database...................... 100.0%
Number of entries................................. 900027
Bytes of storage consumed......................... 21630976
Bytes of payload.................................. 16291103    75.3%
Bytes of metadata................................. 3654888     16.9%
Average payload per entry......................... 18.10
Average unused bytes per entry.................... 1.87
Average metadata per entry........................ 4.06
Average fanout.................................... 159.00
Maximum payload per entry......................... 496
Entries that use overflow......................... 0            0.0%
Index pages used.................................. 33
Primary pages used................................ 5248
Overflow pages used............................... 0
Total pages used.................................. 5281
Unused bytes on index pages....................... 24340       18.0%
Unused bytes on primary pages..................... 1660645      7.7%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 1684985      7.8%

*** All tables ****************************************************************

Percentage of total database......................  30.4%
Number of entries................................. 300021
Bytes of storage consumed......................... 6574080
Bytes of payload.................................. 4704826     71.6%
Bytes of metadata................................. 1810790     27.5%
Average payload per entry......................... 15.68
Average unused bytes per entry.................... 0.19
Average metadata per entry........................ 6.04
Average fanout.................................... 319.00
Maximum payload per entry......................... 496
Entries that use overflow......................... 0            0.0%
Index pages used.................................. 5
Primary pages used................................ 1600
Overflow pages used............................... 0
Total pages used.................................. 1605
Unused bytes on index pages....................... 6172        30.1%
Unused bytes on primary pages..................... 52292        0.80%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 58464        0.89%

*** All indices ***************************************************************

Percentage of total database......................  69.6%
Number of entries................................. 600006
Bytes of storage consumed......................... 15056896
Bytes of payload.................................. 11586277    76.9%
Bytes of metadata................................. 1844098     12.2%
Average payload per entry......................... 19.31
Average unused bytes per entry.................... 2.71
Average metadata per entry........................ 3.07
Average fanout.................................... 131.00
Maximum payload per entry......................... 22
Entries that use overflow......................... 0            0.0%
Index pages used.................................. 28
Primary pages used................................ 3648
Overflow pages used............................... 0
Total pages used.................................. 3676
Unused bytes on index pages....................... 18168       15.8%
Unused bytes on primary pages..................... 1608353     10.8%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 1626521     10.8%

*** Table _SQLX_MIGRATIONS and all its indices ********************************

Percentage of total database......................   0.038%
Number of entries................................. 6
Bytes of storage consumed......................... 8192
Bytes of payload.................................. 314          3.8%
Bytes of metadata................................. 37           0.45%
Average payload per entry......................... 52.33
Average unused bytes per entry.................... 1306.83
Average metadata per entry........................ 6.17
Maximum payload per entry......................... 102
Entries that use overflow......................... 0            0.0%
Primary pages used................................ 2
Overflow pages used............................... 0
Total pages used.................................. 2
Unused bytes on primary pages..................... 7841        95.7%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 7841        95.7%

*** Table _SQLX_MIGRATIONS w/o any indices ************************************

Percentage of total database......................   0.019%
Number of entries................................. 3
Bytes of storage consumed......................... 4096
Bytes of payload.................................. 285          7.0%
Bytes of metadata................................. 20           0.49%
B-tree depth...................................... 1
Average payload per entry......................... 95.00
Average unused bytes per entry.................... 1263.67
Average metadata per entry........................ 6.67
Maximum payload per entry......................... 102
Entries that use overflow......................... 0            0.0%
Primary pages used................................ 1
Overflow pages used............................... 0
Total pages used.................................. 1
Unused bytes on primary pages..................... 3791        92.6%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 3791        92.6%

*** Index SQLITE_AUTOINDEX__SQLX_MIGRATIONS_1 of table _SQLX_MIGRATIONS *******

Percentage of total database......................   0.019%
Number of entries................................. 3
Bytes of storage consumed......................... 4096
Bytes of payload.................................. 29           0.71%
Bytes of metadata................................. 17           0.42%
B-tree depth...................................... 1
Average payload per entry......................... 9.67
Average unused bytes per entry.................... 1350.00
Average metadata per entry........................ 5.67
Maximum payload per entry......................... 10
Entries that use overflow......................... 0            0.0%
Primary pages used................................ 1
Overflow pages used............................... 0
Total pages used.................................. 1
Unused bytes on primary pages..................... 4050        98.9%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 4050        98.9%

*** Table CHUNKS and all its indices ******************************************

Percentage of total database......................  99.75%
Number of entries................................. 900000
Bytes of storage consumed......................... 21577728
Bytes of payload.................................. 16287519    75.5%
Bytes of metadata................................. 3654574     16.9%
Average payload per entry......................... 18.10
Average unused bytes per entry.................... 1.82
Average metadata per entry........................ 4.06
Average fanout.................................... 159.00
Maximum payload per entry......................... 22
Entries that use overflow......................... 0            0.0%
Index pages used.................................. 33
Primary pages used................................ 5235
Overflow pages used............................... 0
Total pages used.................................. 5268
Unused bytes on index pages....................... 24340       18.0%
Unused bytes on primary pages..................... 1611295      7.5%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 1635635      7.6%

*** Table CHUNKS w/o any indices **********************************************

Percentage of total database......................  30.3%
Number of entries................................. 300000
Bytes of storage consumed......................... 6545408
Bytes of payload.................................. 4701306     71.8%
Bytes of metadata................................. 1810542     27.7%
B-tree depth...................................... 3
Average payload per entry......................... 15.67
Average unused bytes per entry.................... 0.11
Average metadata per entry........................ 6.04
Average fanout.................................... 319.00
Non-sequential pages.............................. 1592        99.69%
Maximum payload per entry......................... 16
Entries that use overflow......................... 0            0.0%
Index pages used.................................. 5
Primary pages used................................ 1593
Overflow pages used............................... 0
Total pages used.................................. 1598
Unused bytes on index pages....................... 6172        30.1%
Unused bytes on primary pages..................... 27388        0.42%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 33560        0.51%

*** Indices of table CHUNKS ***************************************************

Percentage of total database......................  69.5%
Number of entries................................. 600000
Bytes of storage consumed......................... 15032320
Bytes of payload.................................. 11586213    77.1%
Bytes of metadata................................. 1844032     12.3%
Average payload per entry......................... 19.31
Average unused bytes per entry.................... 2.67
Average metadata per entry........................ 3.07
Average fanout.................................... 131.00
Maximum payload per entry......................... 22
Entries that use overflow......................... 0            0.0%
Index pages used.................................. 28
Primary pages used................................ 3642
Overflow pages used............................... 0
Total pages used.................................. 3670
Unused bytes on index pages....................... 18168       15.8%
Unused bytes on primary pages..................... 1583907     10.6%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 1602075     10.7%

*** Index RANDOM_CHUNKS_ORDER of table CHUNKS *********************************

Percentage of total database......................  36.8%
Number of entries................................. 300000
Bytes of storage consumed......................... 7950336
Bytes of payload.................................. 6317802     79.5%
Bytes of metadata................................. 923288      11.6%
B-tree depth...................................... 3
Average payload per entry......................... 21.06
Average unused bytes per entry.................... 2.36
Average metadata per entry........................ 3.08
Average fanout.................................... 129.00
Non-sequential pages.............................. 1339        69.0%
Maximum payload per entry......................... 22
Entries that use overflow......................... 0            0.0%
Index pages used.................................. 15
Primary pages used................................ 1926
Overflow pages used............................... 0
Total pages used.................................. 1941
Unused bytes on index pages....................... 7241        11.8%
Unused bytes on primary pages..................... 702005       8.9%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 709246       8.9%

*** Index SQLITE_AUTOINDEX_CHUNKS_1 of table CHUNKS ***************************

Percentage of total database......................  32.7%
Number of entries................................. 300000
Bytes of storage consumed......................... 7081984
Bytes of payload.................................. 5268411     74.4%
Bytes of metadata................................. 920744      13.0%
B-tree depth...................................... 3
Average payload per entry......................... 17.56
Average unused bytes per entry.................... 2.98
Average metadata per entry........................ 3.07
Average fanout.................................... 133.00
Non-sequential pages.............................. 1669        96.6%
Maximum payload per entry......................... 18
Entries that use overflow......................... 0            0.0%
Index pages used.................................. 13
Primary pages used................................ 1716
Overflow pages used............................... 0
Total pages used.................................. 1729
Unused bytes on index pages....................... 10927       20.5%
Unused bytes on primary pages..................... 881902      12.5%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 892829      12.6%

*** Table CHUNKS_COMPLETED and all its indices ********************************

Percentage of total database......................   0.038%
Number of entries................................. 0
Bytes of storage consumed......................... 8192
Bytes of payload.................................. 0            0.0%
Bytes of metadata................................. 16           0.20%
Average payload per entry......................... 0.0
Average unused bytes per entry.................... 0.0
Average metadata per entry........................ 0.0
Maximum payload per entry......................... 0
Entries that use overflow......................... 0
Primary pages used................................ 2
Overflow pages used............................... 0
Total pages used.................................. 2
Unused bytes on primary pages..................... 8176        99.80%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 8176        99.80%

*** Table CHUNKS_COMPLETED w/o any indices ************************************

Percentage of total database......................   0.019%
Number of entries................................. 0
Bytes of storage consumed......................... 4096
Bytes of payload.................................. 0            0.0%
Bytes of metadata................................. 8            0.20%
B-tree depth...................................... 1
Average payload per entry......................... 0.0
Average unused bytes per entry.................... 0.0
Average metadata per entry........................ 0.0
Maximum payload per entry......................... 0
Entries that use overflow......................... 0
Primary pages used................................ 1
Overflow pages used............................... 0
Total pages used.................................. 1
Unused bytes on primary pages..................... 4088        99.80%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 4088        99.80%

*** Index SQLITE_AUTOINDEX_CHUNKS_COMPLETED_1 of table CHUNKS_COMPLETED *******

Percentage of total database......................   0.019%
Number of entries................................. 0
Bytes of storage consumed......................... 4096
Bytes of payload.................................. 0            0.0%
Bytes of metadata................................. 8            0.20%
B-tree depth...................................... 1
Average payload per entry......................... 0.0
Average unused bytes per entry.................... 0.0
Average metadata per entry........................ 0.0
Maximum payload per entry......................... 0
Entries that use overflow......................... 0
Primary pages used................................ 1
Overflow pages used............................... 0
Total pages used.................................. 1
Unused bytes on primary pages..................... 4088        99.80%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 4088        99.80%

*** Table CHUNKS_FAILED and all its indices ***********************************

Percentage of total database......................   0.038%
Number of entries................................. 0
Bytes of storage consumed......................... 8192
Bytes of payload.................................. 0            0.0%
Bytes of metadata................................. 16           0.20%
Average payload per entry......................... 0.0
Average unused bytes per entry.................... 0.0
Average metadata per entry........................ 0.0
Maximum payload per entry......................... 0
Entries that use overflow......................... 0
Primary pages used................................ 2
Overflow pages used............................... 0
Total pages used.................................. 2
Unused bytes on primary pages..................... 8176        99.80%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 8176        99.80%

*** Table CHUNKS_FAILED w/o any indices ***************************************

Percentage of total database......................   0.019%
Number of entries................................. 0
Bytes of storage consumed......................... 4096
Bytes of payload.................................. 0            0.0%
Bytes of metadata................................. 8            0.20%
B-tree depth...................................... 1
Average payload per entry......................... 0.0
Average unused bytes per entry.................... 0.0
Average metadata per entry........................ 0.0
Maximum payload per entry......................... 0
Entries that use overflow......................... 0
Primary pages used................................ 1
Overflow pages used............................... 0
Total pages used.................................. 1
Unused bytes on primary pages..................... 4088        99.80%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 4088        99.80%

*** Index SQLITE_AUTOINDEX_CHUNKS_FAILED_1 of table CHUNKS_FAILED *************

Percentage of total database......................   0.019%
Number of entries................................. 0
Bytes of storage consumed......................... 4096
Bytes of payload.................................. 0            0.0%
Bytes of metadata................................. 8            0.20%
B-tree depth...................................... 1
Average payload per entry......................... 0.0
Average unused bytes per entry.................... 0.0
Average metadata per entry........................ 0.0
Maximum payload per entry......................... 0
Entries that use overflow......................... 0
Primary pages used................................ 1
Overflow pages used............................... 0
Total pages used.................................. 1
Unused bytes on primary pages..................... 4088        99.80%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 4088        99.80%

*** Table SQLITE_SCHEMA *******************************************************

Percentage of total database......................   0.019%
Number of entries................................. 15
Bytes of storage consumed......................... 4096
Bytes of payload.................................. 3076        75.1%
Bytes of metadata................................. 176          4.3%
B-tree depth...................................... 1
Average payload per entry......................... 205.07
Average unused bytes per entry.................... 56.27
Average metadata per entry........................ 11.73
Maximum payload per entry......................... 496
Entries that use overflow......................... 0            0.0%
Primary pages used................................ 1
Overflow pages used............................... 0
Total pages used.................................. 1
Unused bytes on primary pages..................... 844         20.6%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 844         20.6%

*** Table SUBMISSIONS and all its indices *************************************

Percentage of total database......................   0.038%
Number of entries................................. 6
Bytes of storage consumed......................... 8192
Bytes of payload.................................. 194          2.4%
Bytes of metadata................................. 37           0.45%
Average payload per entry......................... 32.33
Average unused bytes per entry.................... 1326.83
Average metadata per entry........................ 6.17
Maximum payload per entry......................... 53
Entries that use overflow......................... 0            0.0%
Primary pages used................................ 2
Overflow pages used............................... 0
Total pages used.................................. 2
Unused bytes on primary pages..................... 7961        97.2%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 7961        97.2%

*** Table SUBMISSIONS w/o any indices *****************************************

Percentage of total database......................   0.019%
Number of entries................................. 3
Bytes of storage consumed......................... 4096
Bytes of payload.................................. 159          3.9%
Bytes of metadata................................. 20           0.49%
B-tree depth...................................... 1
Average payload per entry......................... 53.00
Average unused bytes per entry.................... 1305.67
Average metadata per entry........................ 6.67
Maximum payload per entry......................... 53
Entries that use overflow......................... 0            0.0%
Primary pages used................................ 1
Overflow pages used............................... 0
Total pages used.................................. 1
Unused bytes on primary pages..................... 3917        95.6%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 3917        95.6%

*** Index SQLITE_AUTOINDEX_SUBMISSIONS_1 of table SUBMISSIONS *****************

Percentage of total database......................   0.019%
Number of entries................................. 3
Bytes of storage consumed......................... 4096
Bytes of payload.................................. 35           0.85%
Bytes of metadata................................. 17           0.42%
B-tree depth...................................... 1
Average payload per entry......................... 11.67
Average unused bytes per entry.................... 1348.00
Average metadata per entry........................ 5.67
Maximum payload per entry......................... 12
Entries that use overflow......................... 0            0.0%
Primary pages used................................ 1
Overflow pages used............................... 0
Total pages used.................................. 1
Unused bytes on primary pages..................... 4044        98.7%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 4044        98.7%

*** Table SUBMISSIONS_COMPLETED and all its indices ***************************

Percentage of total database......................   0.038%
Number of entries................................. 0
Bytes of storage consumed......................... 8192
Bytes of payload.................................. 0            0.0%
Bytes of metadata................................. 16           0.20%
Average payload per entry......................... 0.0
Average unused bytes per entry.................... 0.0
Average metadata per entry........................ 0.0
Maximum payload per entry......................... 0
Entries that use overflow......................... 0
Primary pages used................................ 2
Overflow pages used............................... 0
Total pages used.................................. 2
Unused bytes on primary pages..................... 8176        99.80%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 8176        99.80%

*** Table SUBMISSIONS_COMPLETED w/o any indices *******************************

Percentage of total database......................   0.019%
Number of entries................................. 0
Bytes of storage consumed......................... 4096
Bytes of payload.................................. 0            0.0%
Bytes of metadata................................. 8            0.20%
B-tree depth...................................... 1
Average payload per entry......................... 0.0
Average unused bytes per entry.................... 0.0
Average metadata per entry........................ 0.0
Maximum payload per entry......................... 0
Entries that use overflow......................... 0
Primary pages used................................ 1
Overflow pages used............................... 0
Total pages used.................................. 1
Unused bytes on primary pages..................... 4088        99.80%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 4088        99.80%

*** Index SQLITE_AUTOINDEX_SUBMISSIONS_COMPLETED_1 of table SUBMISSIONS_COMPLETED

Percentage of total database......................   0.019%
Number of entries................................. 0
Bytes of storage consumed......................... 4096
Bytes of payload.................................. 0            0.0%
Bytes of metadata................................. 8            0.20%
B-tree depth...................................... 1
Average payload per entry......................... 0.0
Average unused bytes per entry.................... 0.0
Average metadata per entry........................ 0.0
Maximum payload per entry......................... 0
Entries that use overflow......................... 0
Primary pages used................................ 1
Overflow pages used............................... 0
Total pages used.................................. 1
Unused bytes on primary pages..................... 4088        99.80%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 4088        99.80%

*** Table SUBMISSIONS_FAILED and all its indices ******************************

Percentage of total database......................   0.038%
Number of entries................................. 0
Bytes of storage consumed......................... 8192
Bytes of payload.................................. 0            0.0%
Bytes of metadata................................. 16           0.20%
Average payload per entry......................... 0.0
Average unused bytes per entry.................... 0.0
Average metadata per entry........................ 0.0
Maximum payload per entry......................... 0
Entries that use overflow......................... 0
Primary pages used................................ 2
Overflow pages used............................... 0
Total pages used.................................. 2
Unused bytes on primary pages..................... 8176        99.80%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 8176        99.80%

*** Table SUBMISSIONS_FAILED w/o any indices **********************************

Percentage of total database......................   0.019%
Number of entries................................. 0
Bytes of storage consumed......................... 4096
Bytes of payload.................................. 0            0.0%
Bytes of metadata................................. 8            0.20%
B-tree depth...................................... 1
Average payload per entry......................... 0.0
Average unused bytes per entry.................... 0.0
Average metadata per entry........................ 0.0
Maximum payload per entry......................... 0
Entries that use overflow......................... 0
Primary pages used................................ 1
Overflow pages used............................... 0
Total pages used.................................. 1
Unused bytes on primary pages..................... 4088        99.80%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 4088        99.80%

*** Index SQLITE_AUTOINDEX_SUBMISSIONS_FAILED_1 of table SUBMISSIONS_FAILED ***

Percentage of total database......................   0.019%
Number of entries................................. 0
Bytes of storage consumed......................... 4096
Bytes of payload.................................. 0            0.0%
Bytes of metadata................................. 8            0.20%
B-tree depth...................................... 1
Average payload per entry......................... 0.0
Average unused bytes per entry.................... 0.0
Average metadata per entry........................ 0.0
Maximum payload per entry......................... 0
Entries that use overflow......................... 0
Primary pages used................................ 1
Overflow pages used............................... 0
Total pages used.................................. 1
Unused bytes on primary pages..................... 4088        99.80%
Unused bytes on overflow pages.................... 0
Unused bytes on all pages......................... 4088        99.80%

*** Definitions ***************************************************************

Page size in bytes

    The number of bytes in a single page of the database file.
    Usually 1024.

Number of pages in the whole file

    The number of 4096-byte pages that go into forming the complete
    database

Pages that store data

    The number of pages that store data, either as primary B*Tree pages or
    as overflow pages.  The number at the right is the data pages divided by
    the total number of pages in the file.

Pages on the freelist

    The number of pages that are not currently in use but are reserved for
    future use.  The percentage at the right is the number of freelist pages
    divided by the total number of pages in the file.

Pages of auto-vacuum overhead

    The number of pages that store data used by the database to facilitate
    auto-vacuum. This is zero for databases that do not support auto-vacuum.

Number of tables in the database

    The number of tables in the database, including the SQLITE_SCHEMA table
    used to store schema information.

Number of indices

    The total number of indices in the database.

Number of defined indices

    The number of indices created using an explicit CREATE INDEX statement.

Number of implied indices

    The number of indices used to implement PRIMARY KEY or UNIQUE constraints
    on tables.

Size of the file in bytes

    The total amount of disk space used by the entire database files.

Bytes of user payload stored

    The total number of bytes of user payload stored in the database. The
    schema information in the SQLITE_SCHEMA table is not counted when
    computing this number.  The percentage at the right shows the payload
    divided by the total file size.

Percentage of total database

    The amount of the complete database file that is devoted to storing
    information described by this category.

Number of entries

    The total number of B-Tree key/value pairs stored under this category.

Bytes of storage consumed

    The total amount of disk space required to store all B-Tree entries
    under this category.  The is the total number of pages used times
    the pages size.

Bytes of payload

    The amount of payload stored under this category.  Payload is the data
    part of table entries and the key part of index entries.  The percentage
    at the right is the bytes of payload divided by the bytes of storage
    consumed.

Bytes of metadata

    The amount of formatting and structural information stored in the
    table or index.  Metadata includes the btree page header, the cell pointer
    array, the size field for each cell, the left child pointer or non-leaf
    cells, the overflow pointers for overflow cells, and the rowid value for
    rowid table cells.  In other words, metadata is everything that is neither
    unused space nor content.  The record header in the payload is counted as
    content, not metadata.

Average payload per entry

    The average amount of payload on each entry.  This is just the bytes of
    payload divided by the number of entries.

Average unused bytes per entry

    The average amount of free space remaining on all pages under this
    category on a per-entry basis.  This is the number of unused bytes on
    all pages divided by the number of entries.

Non-sequential pages

    The number of pages in the table or index that are out of sequence.
    Many filesystems are optimized for sequential file access so a small
    number of non-sequential pages might result in faster queries,
    especially for larger database files that do not fit in the disk cache.
    Note that after running VACUUM, the root page of each table or index is
    at the beginning of the database file and all other pages are in a
    separate part of the database file, resulting in a single non-
    sequential page.

Maximum payload per entry

    The largest payload size of any entry.

Entries that use overflow

    The number of entries that user one or more overflow pages.

Total pages used

    This is the number of pages used to hold all information in the current
    category.  This is the sum of index, primary, and overflow pages.

Index pages used

    This is the number of pages in a table B-tree that hold only key (rowid)
    information and no data.

Primary pages used

    This is the number of B-tree pages that hold both key and data.

Overflow pages used

    The total number of overflow pages used for this category.

Unused bytes on index pages

    The total number of bytes of unused space on all index pages.  The
    percentage at the right is the number of unused bytes divided by the
    total number of bytes on index pages.

Unused bytes on primary pages

    The total number of bytes of unused space on all primary pages.  The
    percentage at the right is the number of unused bytes divided by the
    total number of bytes on primary pages.

Unused bytes on overflow pages

    The total number of bytes of unused space on all overflow pages.  The
    percentage at the right is the number of unused bytes divided by the
    total number of bytes on overflow pages.

Unused bytes on all pages

    The total number of bytes of unused space on all primary and overflow
    pages.  The percentage at the right is the number of unused bytes
    divided by the total number of bytes.

*******************************************************************************
The entire text of this report can be sourced into any SQL database
engine for further analysis.  All of the text above is an SQL comment.
The data used to generate this report follows:
*/
BEGIN;
CREATE TABLE space_used(
   name clob,        -- Name of a table or index in the database file
   tblname clob,     -- Name of associated table
   is_index boolean, -- TRUE if it is an index, false for a table
   is_without_rowid boolean, -- TRUE if WITHOUT ROWID table
   nentry int,       -- Number of entries in the BTree
   leaf_entries int, -- Number of leaf entries
   depth int,        -- Depth of the b-tree
   payload int,      -- Total amount of data stored in this table or index
   ovfl_payload int, -- Total amount of data stored on overflow pages
   ovfl_cnt int,     -- Number of entries that use overflow
   mx_payload int,   -- Maximum payload size
   int_pages int,    -- Number of interior pages used
   leaf_pages int,   -- Number of leaf pages used
   ovfl_pages int,   -- Number of overflow pages used
   int_unused int,   -- Number of unused bytes on interior pages
   leaf_unused int,  -- Number of unused bytes on primary pages
   ovfl_unused int,  -- Number of unused bytes on overflow pages
   gap_cnt int,      -- Number of gaps in the page layout
   compressed_size int  -- Total bytes stored on disk
);
INSERT INTO space_used VALUES('sqlite_schema','sqlite_schema',0,0,15,15,1,3076,0,0,496,0,1,0,0,844,0,0,4096);
INSERT INTO space_used VALUES('_sqlx_migrations','_sqlx_migrations',0,0,3,3,1,285,0,0,102,0,1,0,0,3791,0,0,4096);
INSERT INTO space_used VALUES('sqlite_autoindex__sqlx_migrations_1','_sqlx_migrations',1,0,3,3,1,29,0,0,10,0,1,0,0,4050,0,0,4096);
INSERT INTO space_used VALUES('submissions','submissions',0,0,3,3,1,159,0,0,53,0,1,0,0,3917,0,0,4096);
INSERT INTO space_used VALUES('sqlite_autoindex_submissions_1','submissions',1,0,3,3,1,35,0,0,12,0,1,0,0,4044,0,0,4096);
INSERT INTO space_used VALUES('submissions_completed','submissions_completed',0,0,0,0,1,0,0,0,0,0,1,0,0,4088,0,0,4096);
INSERT INTO space_used VALUES('sqlite_autoindex_submissions_completed_1','submissions_completed',1,0,0,0,1,0,0,0,0,0,1,0,0,4088,0,0,4096);
INSERT INTO space_used VALUES('submissions_failed','submissions_failed',0,0,0,0,1,0,0,0,0,0,1,0,0,4088,0,0,4096);
INSERT INTO space_used VALUES('sqlite_autoindex_submissions_failed_1','submissions_failed',1,0,0,0,1,0,0,0,0,0,1,0,0,4088,0,0,4096);
INSERT INTO space_used VALUES('chunks','chunks',0,0,301592,300000,3,4701306,0,0,16,5,1593,0,6172,27388,0,1592,6545408);
INSERT INTO space_used VALUES('sqlite_autoindex_chunks_1','chunks',1,0,300000,298285,3,5268411,0,0,18,13,1716,0,10927,881902,0,1669,7081984);
INSERT INTO space_used VALUES('chunks_completed','chunks_completed',0,0,0,0,1,0,0,0,0,0,1,0,0,4088,0,0,4096);
INSERT INTO space_used VALUES('sqlite_autoindex_chunks_completed_1','chunks_completed',1,0,0,0,1,0,0,0,0,0,1,0,0,4088,0,0,4096);
INSERT INTO space_used VALUES('chunks_failed','chunks_failed',0,0,0,0,1,0,0,0,0,0,1,0,0,4088,0,0,4096);
INSERT INTO space_used VALUES('sqlite_autoindex_chunks_failed_1','chunks_failed',1,0,0,0,1,0,0,0,0,0,1,0,0,4088,0,0,4096);
INSERT INTO space_used VALUES('random_chunks_order','chunks',1,0,300000,298075,3,6317802,0,0,22,15,1926,0,7241,702005,0,1339,7950336);
COMMIT;