Compare commits

...

1 Commits

Author SHA1 Message Date
Frédéric Péters 5619267c55 add index on dates (#51681) 2021-03-04 21:06:59 +01:00
1 changed files with 1 additions and 0 deletions

View File

@ -380,6 +380,7 @@ class WcsOlapFeeder(object):
def do_dates_table(self):
self.ex('CREATE TABLE IF NOT EXISTS public.dates (date date, day text, month text)')
self.ex('CREATE INDEX IF NOT EXISTS dates_index ON public.dates (date)')
self.ex('SELECT MIN(date) FROM public.dates')
max_date = self.cur.fetchone()[0]