0001-add-index-on-dates-51681.patch
wcs_olap/feeder.py | ||
---|---|---|
380 | 380 | |
381 | 381 |
def do_dates_table(self): |
382 | 382 |
self.ex('CREATE TABLE IF NOT EXISTS public.dates (date date, day text, month text)') |
383 |
self.ex('CREATE INDEX IF NOT EXISTS dates_index ON public.dates (date)') |
|
383 | 384 |
self.ex('SELECT MIN(date) FROM public.dates') |
384 | 385 |
max_date = self.cur.fetchone()[0] |
385 | 386 | |
386 |
- |