[performance] Add further indexes to mitigate laggy queries (#586)

* start adding more indexes as a migration

* update sqlite version
This commit is contained in:
tobi 2022-05-18 16:58:26 +02:00 committed by GitHub
commit f4b0d76cd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
236 changed files with 395899 additions and 195070 deletions

View file

@ -1,4 +1,4 @@
// Code generated by 'ccgo stdio/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_freebsd_386.go -pkgname stdio', DO NOT EDIT.
// Code generated by 'ccgo stdio/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdio/stdio_freebsd_386.go -pkgname stdio', DO NOT EDIT.
package stdio

View file

@ -1,4 +1,4 @@
// Code generated by 'ccgo stdio/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_freebsd_amd64.go -pkgname stdio', DO NOT EDIT.
// Code generated by 'ccgo stdio/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdio/stdio_freebsd_amd64.go -pkgname stdio', DO NOT EDIT.
package stdio

View file

@ -1,4 +1,4 @@
// Code generated by 'ccgo stdio/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_netbsd_amd64.go -pkgname stdio', DO NOT EDIT.
// Code generated by 'ccgo stdio/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdio/stdio_netbsd_amd64.go -pkgname stdio', DO NOT EDIT.
package stdio

View file

@ -1,4 +1,4 @@
// Code generated by 'ccgo stdio/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_openbsd_amd64.go -pkgname stdio', DO NOT EDIT.
// Code generated by 'ccgo stdio/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdio/stdio_openbsd_amd64.go -pkgname stdio', DO NOT EDIT.
package stdio

View file

@ -1,4 +1,4 @@
// Code generated by 'ccgo stdio/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_freebsd_386.go -pkgname stdio', DO NOT EDIT.
// Code generated by 'ccgo stdio/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdio/stdio_freebsd_386.go -pkgname stdio', DO NOT EDIT.
package stdio
@ -15,46 +15,46 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
BUFSIZ = 1024
EOF = -1
FILENAME_MAX = 1024
FOPEN_MAX = 20
L_ctermid = 1024
L_cuserid = 17
L_tmpnam = 1024
P_tmpdir = "/tmp/"
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
TMP_MAX = 308915776
X_FILE_OFFSET_BITS = 64
X_FSTDIO = 0
X_FTRUNCATE_DECLARED = 0
X_ILP32 = 1
X_IOFBF = 0
X_IOLBF = 1
X_IONBF = 2
X_LSEEK_DECLARED = 0
X_MACHINE__LIMITS_H_ = 0
X_MACHINE__TYPES_H_ = 0
X_MMAP_DECLARED = 0
X_Nonnull = 0
X_Null_unspecified = 0
X_Nullable = 0
X_OFF64_T_DECLARED = 0
X_OFF_T_DECLARED = 0
X_RSIZE_T_DEFINED = 0
X_SIZE_T_DECLARED = 0
X_SSIZE_T_DECLARED = 0
X_STDFILE_DECLARED = 0
X_STDIO_H_ = 0
X_STDSTREAM_DECLARED = 0
X_SYS_CDEFS_H_ = 0
X_SYS__TYPES_H_ = 0
X_TRUNCATE_DECLARED = 0
X_VA_LIST_DECLARED = 0
I386 = 1
Unix = 1
BUFSIZ = 1024 // stdio.h:209:1:
EOF = -1 // stdio.h:210:1:
FILENAME_MAX = 1024 // stdio.h:221:1:
FOPEN_MAX = 20 // stdio.h:219:1:
L_ctermid = 1024 // stdio.h:319:1:
L_cuserid = 17 // stdio.h:315:1:
L_tmpnam = 1024 // stdio.h:227:1:
P_tmpdir = "/tmp/" // stdio.h:225:1:
SEEK_CUR = 1 // stdio.h:234:1:
SEEK_END = 2 // stdio.h:237:1:
SEEK_SET = 0 // stdio.h:231:1:
TMP_MAX = 308915776 // stdio.h:228:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FSTDIO = 0 // stdio.h:82:1:
X_FTRUNCATE_DECLARED = 0 // stdio.h:435:1:
X_ILP32 = 1 // <predefined>:1:1:
X_IOFBF = 0 // stdio.h:205:1:
X_IOLBF = 1 // stdio.h:206:1:
X_IONBF = 2 // stdio.h:207:1:
X_LSEEK_DECLARED = 0 // stdio.h:439:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
X_MMAP_DECLARED = 0 // stdio.h:443:1:
X_Nonnull = 0 // cdefs.h:790:1:
X_Null_unspecified = 0 // cdefs.h:792:1:
X_Nullable = 0 // cdefs.h:791:1:
X_OFF64_T_DECLARED = 0 // stdio.h:71:1:
X_OFF_T_DECLARED = 0 // stdio.h:61:1:
X_RSIZE_T_DEFINED = 0 // stdio.h:55:1:
X_SIZE_T_DECLARED = 0 // stdio.h:51:1:
X_SSIZE_T_DECLARED = 0 // stdio.h:65:1:
X_STDFILE_DECLARED = 0 // stdio.h:164:1:
X_STDIO_H_ = 0 // stdio.h:39:1:
X_STDSTREAM_DECLARED = 0 // stdio.h:173:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
X_TRUNCATE_DECLARED = 0 // stdio.h:447:1:
X_VA_LIST_DECLARED = 0 // stdio.h:78:1:
I386 = 1 // <predefined>:335:1:
Unix = 1 // <predefined>:336:1:
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */

View file

@ -1,4 +1,4 @@
// Code generated by 'ccgo stdio/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_freebsd_amd64.go -pkgname stdio', DO NOT EDIT.
// Code generated by 'ccgo stdio/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdio/stdio_freebsd_amd64.go -pkgname stdio', DO NOT EDIT.
package stdio
@ -15,45 +15,45 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
BUFSIZ = 1024
EOF = -1
FILENAME_MAX = 1024
FOPEN_MAX = 20
L_ctermid = 1024
L_cuserid = 17
L_tmpnam = 1024
P_tmpdir = "/tmp/"
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
TMP_MAX = 308915776
X_FILE_OFFSET_BITS = 64
X_FSTDIO = 0
X_FTRUNCATE_DECLARED = 0
X_IOFBF = 0
X_IOLBF = 1
X_IONBF = 2
X_LP64 = 1
X_LSEEK_DECLARED = 0
X_MACHINE__LIMITS_H_ = 0
X_MACHINE__TYPES_H_ = 0
X_MMAP_DECLARED = 0
X_Nonnull = 0
X_Null_unspecified = 0
X_Nullable = 0
X_OFF64_T_DECLARED = 0
X_OFF_T_DECLARED = 0
X_RSIZE_T_DEFINED = 0
X_SIZE_T_DECLARED = 0
X_SSIZE_T_DECLARED = 0
X_STDFILE_DECLARED = 0
X_STDIO_H_ = 0
X_STDSTREAM_DECLARED = 0
X_SYS_CDEFS_H_ = 0
X_SYS__TYPES_H_ = 0
X_TRUNCATE_DECLARED = 0
X_VA_LIST_DECLARED = 0
Unix = 1
BUFSIZ = 1024 // stdio.h:209:1:
EOF = -1 // stdio.h:210:1:
FILENAME_MAX = 1024 // stdio.h:221:1:
FOPEN_MAX = 20 // stdio.h:219:1:
L_ctermid = 1024 // stdio.h:319:1:
L_cuserid = 17 // stdio.h:315:1:
L_tmpnam = 1024 // stdio.h:227:1:
P_tmpdir = "/tmp/" // stdio.h:225:1:
SEEK_CUR = 1 // stdio.h:234:1:
SEEK_END = 2 // stdio.h:237:1:
SEEK_SET = 0 // stdio.h:231:1:
TMP_MAX = 308915776 // stdio.h:228:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FSTDIO = 0 // stdio.h:82:1:
X_FTRUNCATE_DECLARED = 0 // stdio.h:435:1:
X_IOFBF = 0 // stdio.h:205:1:
X_IOLBF = 1 // stdio.h:206:1:
X_IONBF = 2 // stdio.h:207:1:
X_LP64 = 1 // <predefined>:1:1:
X_LSEEK_DECLARED = 0 // stdio.h:439:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
X_MMAP_DECLARED = 0 // stdio.h:443:1:
X_Nonnull = 0 // cdefs.h:783:1:
X_Null_unspecified = 0 // cdefs.h:785:1:
X_Nullable = 0 // cdefs.h:784:1:
X_OFF64_T_DECLARED = 0 // stdio.h:71:1:
X_OFF_T_DECLARED = 0 // stdio.h:61:1:
X_RSIZE_T_DEFINED = 0 // stdio.h:55:1:
X_SIZE_T_DECLARED = 0 // stdio.h:51:1:
X_SSIZE_T_DECLARED = 0 // stdio.h:65:1:
X_STDFILE_DECLARED = 0 // stdio.h:164:1:
X_STDIO_H_ = 0 // stdio.h:39:1:
X_STDSTREAM_DECLARED = 0 // stdio.h:173:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
X_TRUNCATE_DECLARED = 0 // stdio.h:447:1:
X_VA_LIST_DECLARED = 0 // stdio.h:78:1:
Unix = 1 // <predefined>:337:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */

View file

@ -1,4 +1,4 @@
// Code generated by 'ccgo stdio/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_netbsd_amd64.go -pkgname stdio', DO NOT EDIT.
// Code generated by 'ccgo stdio/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdio/stdio_netbsd_amd64.go -pkgname stdio', DO NOT EDIT.
package stdio
@ -15,39 +15,39 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
BUFSIZ = 1024
EOF = -1
FILENAME_MAX = 1024
FOPEN_MAX = 20
FPARSELN_UNESCALL = 0x0f
FPARSELN_UNESCCOMM = 0x04
FPARSELN_UNESCCONT = 0x02
FPARSELN_UNESCESC = 0x01
FPARSELN_UNESCREST = 0x08
L_ctermid = 1024
L_cuserid = 9
L_tmpnam = 1024
P_tmpdir = "/tmp/"
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
TMP_MAX = 308915776
X_AMD64_INT_TYPES_H_ = 0
X_FILE_OFFSET_BITS = 64
X_FSTDIO = 0
X_IOFBF = 0
X_IOLBF = 1
X_IONBF = 2
X_LP64 = 1
X_NETBSD_SOURCE = 1
X_STDIO_H_ = 0
X_SYS_ANSI_H_ = 0
X_SYS_CDEFS_ELF_H_ = 0
X_SYS_CDEFS_H_ = 0
X_SYS_COMMON_ANSI_H_ = 0
X_SYS_COMMON_INT_TYPES_H_ = 0
X_SYS_NULL_H_ = 0
X_X86_64_CDEFS_H_ = 0
BUFSIZ = 1024 // stdio.h:182:1:
EOF = -1 // stdio.h:183:1:
FILENAME_MAX = 1024 // stdio.h:192:1:
FOPEN_MAX = 20 // stdio.h:191:1:
FPARSELN_UNESCALL = 0x0f // stdio.h:411:1:
FPARSELN_UNESCCOMM = 0x04 // stdio.h:409:1:
FPARSELN_UNESCCONT = 0x02 // stdio.h:408:1:
FPARSELN_UNESCESC = 0x01 // stdio.h:407:1:
FPARSELN_UNESCREST = 0x08 // stdio.h:410:1:
L_ctermid = 1024 // stdio.h:292:1:
L_cuserid = 9 // stdio.h:293:1:
L_tmpnam = 1024 // stdio.h:198:1:
P_tmpdir = "/tmp/" // stdio.h:196:1:
SEEK_CUR = 1 // stdio.h:209:1:
SEEK_END = 2 // stdio.h:212:1:
SEEK_SET = 0 // stdio.h:206:1:
TMP_MAX = 308915776 // stdio.h:201:1:
X_AMD64_INT_TYPES_H_ = 0 // int_types.h:35:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FSTDIO = 0 // stdio.h:72:1:
X_IOFBF = 0 // stdio.h:178:1:
X_IOLBF = 1 // stdio.h:179:1:
X_IONBF = 2 // stdio.h:180:1:
X_LP64 = 1 // <predefined>:268:1:
X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
X_STDIO_H_ = 0 // stdio.h:38:1:
X_SYS_ANSI_H_ = 0 // ansi.h:33:1:
X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
X_SYS_NULL_H_ = 0 // null.h:9:1:
X_X86_64_CDEFS_H_ = 0 // cdefs.h:4:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */

View file

@ -1,4 +1,4 @@
// Code generated by 'ccgo stdio/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_openbsd_amd64.go -pkgname stdio', DO NOT EDIT.
// Code generated by 'ccgo stdio/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdio/stdio_openbsd_amd64.go -pkgname stdio', DO NOT EDIT.
package stdio
@ -15,62 +15,62 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
BIG_ENDIAN = 4321
BUFSIZ = 1024
BYTE_ORDER = 1234
EOF = -1
FILENAME_MAX = 1024
FOPEN_MAX = 20
LITTLE_ENDIAN = 1234
L_ctermid = 1024
L_tmpnam = 1024
PDP_ENDIAN = 3412
P_tmpdir = "/tmp/"
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
TMP_MAX = 0x7fffffff
X_BIG_ENDIAN = 4321
X_BYTE_ORDER = 1234
X_CLOCKID_T_DEFINED_ = 0
X_CLOCK_T_DEFINED_ = 0
X_FILE_OFFSET_BITS = 64
X_FSTDIO = 0
X_INT16_T_DEFINED_ = 0
X_INT32_T_DEFINED_ = 0
X_INT64_T_DEFINED_ = 0
X_INT8_T_DEFINED_ = 0
X_IOFBF = 0
X_IOLBF = 1
X_IONBF = 2
X_LITTLE_ENDIAN = 1234
X_LP64 = 1
X_MACHINE_CDEFS_H_ = 0
X_MACHINE_ENDIAN_H_ = 0
X_MACHINE__TYPES_H_ = 0
X_MAX_PAGE_SHIFT = 12
X_OFF_T_DEFINED_ = 0
X_PDP_ENDIAN = 3412
X_PID_T_DEFINED_ = 0
X_QUAD_HIGHWORD = 1
X_QUAD_LOWWORD = 0
X_RET_PROTECTOR = 1
X_SIZE_T_DEFINED_ = 0
X_SSIZE_T_DEFINED_ = 0
X_STACKALIGNBYTES = 15
X_STDIO_H_ = 0
X_SYS_CDEFS_H_ = 0
X_SYS_ENDIAN_H_ = 0
X_SYS_TYPES_H_ = 0
X_SYS__ENDIAN_H_ = 0
X_SYS__TYPES_H_ = 0
X_TIMER_T_DEFINED_ = 0
X_TIME_T_DEFINED_ = 0
X_UINT16_T_DEFINED_ = 0
X_UINT32_T_DEFINED_ = 0
X_UINT64_T_DEFINED_ = 0
X_UINT8_T_DEFINED_ = 0
Unix = 1
BIG_ENDIAN = 4321 // endian.h:45:1:
BUFSIZ = 1024 // stdio.h:168:1:
BYTE_ORDER = 1234 // endian.h:47:1:
EOF = -1 // stdio.h:170:1:
FILENAME_MAX = 1024 // stdio.h:178:1:
FOPEN_MAX = 20 // stdio.h:177:1:
LITTLE_ENDIAN = 1234 // endian.h:44:1:
L_ctermid = 1024 // stdio.h:306:1:
L_tmpnam = 1024 // stdio.h:184:1:
PDP_ENDIAN = 3412 // endian.h:46:1:
P_tmpdir = "/tmp/" // stdio.h:182:1:
SEEK_CUR = 1 // stdio.h:191:1:
SEEK_END = 2 // stdio.h:194:1:
SEEK_SET = 0 // stdio.h:188:1:
TMP_MAX = 0x7fffffff // stdio.h:185:1:
X_BIG_ENDIAN = 4321 // _endian.h:43:1:
X_BYTE_ORDER = 1234 // endian.h:58:1:
X_CLOCKID_T_DEFINED_ = 0 // types.h:163:1:
X_CLOCK_T_DEFINED_ = 0 // types.h:158:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FSTDIO = 0 // stdio.h:59:1:
X_INT16_T_DEFINED_ = 0 // types.h:84:1:
X_INT32_T_DEFINED_ = 0 // types.h:94:1:
X_INT64_T_DEFINED_ = 0 // types.h:104:1:
X_INT8_T_DEFINED_ = 0 // types.h:74:1:
X_IOFBF = 0 // stdio.h:164:1:
X_IOLBF = 1 // stdio.h:165:1:
X_IONBF = 2 // stdio.h:166:1:
X_LITTLE_ENDIAN = 1234 // _endian.h:42:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1:
X_MACHINE_ENDIAN_H_ = 0 // endian.h:28:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:36:1:
X_MAX_PAGE_SHIFT = 12 // _types.h:52:1:
X_OFF_T_DEFINED_ = 0 // types.h:193:1:
X_PDP_ENDIAN = 3412 // _endian.h:44:1:
X_PID_T_DEFINED_ = 0 // types.h:168:1:
X_QUAD_HIGHWORD = 1 // _endian.h:95:1:
X_QUAD_LOWWORD = 0 // _endian.h:96:1:
X_RET_PROTECTOR = 1 // <predefined>:2:1:
X_SIZE_T_DEFINED_ = 0 // types.h:173:1:
X_SSIZE_T_DEFINED_ = 0 // types.h:178:1:
X_STACKALIGNBYTES = 15 // _types.h:49:1:
X_STDIO_H_ = 0 // stdio.h:39:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_ENDIAN_H_ = 0 // endian.h:38:1:
X_SYS_TYPES_H_ = 0 // types.h:41:1:
X_SYS__ENDIAN_H_ = 0 // _endian.h:34:1:
X_SYS__TYPES_H_ = 0 // _types.h:35:1:
X_TIMER_T_DEFINED_ = 0 // types.h:188:1:
X_TIME_T_DEFINED_ = 0 // types.h:183:1:
X_UINT16_T_DEFINED_ = 0 // types.h:89:1:
X_UINT32_T_DEFINED_ = 0 // types.h:99:1:
X_UINT64_T_DEFINED_ = 0 // types.h:109:1:
X_UINT8_T_DEFINED_ = 0 // types.h:79:1:
Unix = 1 // <predefined>:340:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */