|
70-228 Вопрос из Testking 1.5 № 38
|
|||
---|---|---|---|
#18+
You are the administrator of a SQL Server 2000 computer. The server contains two databases. A client/server application accesses one of the databases. A different client/server application accesses the other database. Each application uses several stored procedures to query and update its database. Users report that both applications respond slowly. You use SQL Profiler to monitor activity on the server. You receive results of the trace as shown below: Код: plaintext 1. 2. 3. 4. 5. 6. 7.
You need to improve the performance of the applications. What should you do? A. Modify the applications so that they use views to query data. B. Modify the stored procedures so that they select data into temporary tables. C. Re-create the stored procedures so that they do not contain the WITH RECOMPILE option. D. Disable the 'Autoupdate statistics' option in both databases. Answer из Testkinga : B Explanation: We see that the same data is queried in two separate statemants. This could result in locking and degraded perfomance. By usuing temporary tables, when appropriate like in this scenario?, the locking could be decreased and same data could be re-used. Both these benefits would impove perfomance. Непонятно : в трассе я вижу обновления таблиц, как использовние временных таблиц может помочь? Предлагается скопировать эти таблицы во временные, то есть в tempdb и там с ними работать A и D - тоже не подходят следовательно С - но нет данных по Buffer Manager - Procedure cache pages и SQL Statistics - SQL Compilations/sec ... |
|||
:
Нравится:
Не нравится:
|
|||
29.04.2004, 18:20 |
|
|
start [/forum/topic.php?fid=34&fpage=58&tid=1551899]: |
0ms |
get settings: |
9ms |
get forum list: |
12ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
83ms |
get topic data: |
12ms |
get forum data: |
2ms |
get page messages: |
35ms |
get tp. blocked users: |
2ms |
others: | 14ms |
total: | 177ms |
0 / 0 |