I can write query which is about 1000 (probably more) times faster. 
                  
                  
                
можно создать индекс примерно так : create index idx_part on table (id) where EXTRACT(ISODOW FROM birthday) IN (1,5) and upper(left(name, 1)) = 'B' select * from table where EXTRACT(ISODOW FROM birthday) IN (1,5) and upper(left(name, 1)) = 'B'
Обсуждают сегодня