|
Коварство экзамена 70-229: Tuning (Complex)
|
|||
---|---|---|---|
#18+
You are a database developer for your company's SQL Server 2000 database. You update several stored procedures in the database that create new end-of-month reports for the sales department. The stored procedures contain complex queries that retrieve data from three or more tables. All tables in the database have at least one index. Users have reported that the new end-of-month reports are running much slower than the previous version of the reports. You want to improve the performance of the reports. What should you do? A. Create a script that contains the Data Definition Language of each stored procedure. Use this script as a workload file for the Index Tuning Wizard B. Capture the execution of each stored procedure in a SQL Profiler trace. Use the trace file as a workload file for the Index Tuning Wizard. C. Update the index statistics for the tables used in the stored procedures. D. Execute each stored procedure in SQL Query Analyzer, and use the Show Execution Plan option E. Execute each stored procedure in SQL Query Analyzer, and use the Show Server Trace option Ну тут я доверился TestKing'у и выбрал E. Но аргументы тут какие могут быть? Вроде и B и D тоже ничего варианты... ... |
|||
:
Нравится:
Не нравится:
|
|||
18.11.2002, 16:06 |
|
Коварство экзамена 70-229: Tuning (Complex)
|
|||
---|---|---|---|
#18+
Ну не знаю, не знаю. Если у нас "complex queries that retrieve data from three or more tables", то чем поможет Show Server Trace option ? Мне кажется, что Show Execution Plan даст гораздо больше информации для "improve the performance of the reports". Кроме того он может показать missed statistics. Да и вот эта фраза "You update several stored procedures" говорит скорее о том, что после изменения процедуры используется не самый лучший план выполнения. Хотя опять же для "You want to improve the performance of the reports" ни D ни E не подходят, т.к. сами ничего не "improve"-вят. Тогда вообще получается В ... |
|||
:
Нравится:
Не нравится:
|
|||
18.11.2002, 19:18 |
|
Коварство экзамена 70-229: Tuning (Complex)
|
|||
---|---|---|---|
#18+
Скорее всего B, тк на похожие вопросы в transcenderе всегда так отвечают :-)) A - не подходит, тк у процедуры может быть еще и много параметров, одни исходники ничего не дадут. D, E не подходит, тк придется после применения шагов D или E придется долго анализировать результаты и переписывать запрос. Возможно это не удастся, тк он уже и так хорошо написан :-) ну и С также не подходит.. ответ - B индекс тюникг визард сам разберется какие там индексы создать :-) ... |
|||
:
Нравится:
Не нравится:
|
|||
18.11.2002, 20:32 |
|
Коварство экзамена 70-229: Tuning (Complex)
|
|||
---|---|---|---|
#18+
А чо за ТестКинг такой что Е советует? Я бы конечно Тюнинг Визард не пользовал ни в коем разе, но Микрософт рекомендует его как сретство, которое Recommended the best mix of indexes for a database given a workload, by using the query optimizer to analyze the queries in the workload. Вот выходит,что D - правильный атвет! ... |
|||
:
Нравится:
Не нравится:
|
|||
20.11.2002, 17:51 |
|
|
start [/forum/topic.php?fid=34&msg=32069289&tid=1552134]: |
0ms |
get settings: |
10ms |
get forum list: |
15ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
46ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
51ms |
get tp. blocked users: |
2ms |
others: | 13ms |
total: | 160ms |
0 / 0 |