From cd9ee67feda56f8c5448417abb2f854ceb8d5233 Mon Sep 17 00:00:00 2001 From: evlist Date: Tue, 15 Nov 2022 16:03:36 +0100 Subject: [PATCH] Removing unused indexes. --- src/db/index.ts | 8 +------- src/db/lib.test.ts | 14 +++++++------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/src/db/index.ts b/src/db/index.ts index d243570..5a6c935 100644 --- a/src/db/index.ts +++ b/src/db/index.ts @@ -55,13 +55,7 @@ export const initDb = async (params: any) => { { name: 'type-subtype', def: { - fields: [{ type: 'asc' }, { subtype: 'asc' }], - }, - }, - { - name: 'type-trkpt-gpx-time', - def: { - fields: [{ type: 'asc' }, { gpx: 'asc' }, { 'trkpt.time': 'asc' }], + fields: [{ type: 'asc' }], }, }, ]; diff --git a/src/db/lib.test.ts b/src/db/lib.test.ts index 162eb6b..fb68891 100644 --- a/src/db/lib.test.ts +++ b/src/db/lib.test.ts @@ -46,7 +46,7 @@ Object { }, }, ], - "total_rows": 5, + "total_rows": 4, } `); }); @@ -103,7 +103,7 @@ Object { }, }, ], - "total_rows": 5, + "total_rows": 4, } `); }); @@ -136,7 +136,7 @@ Object { }, }, ], - "total_rows": 6, + "total_rows": 5, } `); }); @@ -176,7 +176,7 @@ Object { }, }, ], - "total_rows": 7, + "total_rows": 6, } `); }); @@ -203,7 +203,7 @@ Object { }, }, ], - "total_rows": 5, + "total_rows": 4, } `); }); @@ -230,7 +230,7 @@ Object { }, }, ], - "total_rows": 5, + "total_rows": 4, } `); }); @@ -264,7 +264,7 @@ Object { }, }, ], - "total_rows": 6, + "total_rows": 5, } `); });