А я брахаць ня ўмею, дык і завыў - July 28th, 2005
[Recent Entries][Archive][Friends][User Info]
01:26 pm
![[User Picture]](http://lj.rossia.org/userpic/38424/2283) [Link] |
The automatic DBA Why are the RDBMSs so stupid? Why do we need a human DBA to tell the server to create the indices? After all, the server knows what types of queries are being run against the data. So after seeing thousands of queries like "... WHERE A=? AND B=? AND ? BETWEEN C AND D" it should be smart enough to ask itself a question "Given the previous query history, wouldn't it make sence to create non-unique indices on A, B, C and D columns, paying by using extra storage and slowing inserts, but winning in lookup time?"
Чаму РСКБД* такія тупыя? Чаму дзеля таго, каб стварыць новыя індэксы, патрэбны чалавек-DBA? Сэрвер-жа мае статыстыку па запытах, чаму-ж пасьля тысяч запытаў кшталту "... WHERE A=? AND B=? AND ? BETWEEN C AND D" ён ня можа аўтаматычна праверыць "А можа, трэба зрабіць неўнікальныя індэксы па палёх A, B, C і D columns - хай на тое спатрэбіцца больш памяці й даданьне новых дадзеных трохі замедліцца, але-ж запыты-чытачы паскорацца?"
*Рэляцыйныя сыстэмы кіраваньня базамі дадзеных
Tags: sql
|
|