Projet

Général

Profil

0001-add-index-on-dates-51681.patch

Frédéric Péters, 04 mars 2021 21:07

Télécharger (796 octets)

Voir les différences:

Subject: [PATCH] add index on dates (#51681)

 wcs_olap/feeder.py | 1 +
 1 file changed, 1 insertion(+)
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
-