add index on dates (#51681)
This commit is contained in:
parent
1dc7fb5833
commit
1640abbfdc
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue