|
|
|
Хотелка: alter table <detail> add constraint <FK> ... using <EXISTSING_detail_table_index>
|
|||
|---|---|---|---|
|
#18+
hi all Есть таблица-деталь `td`, на ней - FK-ограничение, с индексом td_pid. Со временем стало ясно, что на эту таблицу неплохо бы навесить составной индекс по полям: {pid, qid, sid}. Сразу, есс-но, лезет вопрос: а нафига тогда тот, первый, индекс, который для FK ? Попытка сбацать в лоб завершилась шваброй (тоже в лоб :)) Код: plaintext 1. 2. 3. 4. 5. Код: plaintext Firebird-devel RFE: Allow control over constraint indices > Eyal: > 2. For all types of constraints - allow using an existing index (after > verifying it's appropriate for the job). There is already an existing > syntax to support it. dimitr: Doable. > Eyal: > Starting with v1.5 constraint definitions can contain a USING clause to > specify a name for the soon to be created index (see v1.5 Release Notes > page 8). This exact same syntax can be used to also accept the name of > an existing index. dimitr: Agreed. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 31.07.2014, 09:06 |
|
||
|
|

start [/forum/topic.php?fid=40&gotonew=1&tid=1563427]: |
0ms |
get settings: |
7ms |
get forum list: |
17ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
185ms |
get topic data: |
9ms |
get first new msg: |
5ms |
get forum data: |
2ms |
get page messages: |
32ms |
get tp. blocked users: |
1ms |
| others: | 195ms |
| total: | 459ms |

| 0 / 0 |
