编程案例

C语言代写 数据库代写Web作业代写 Java代写 Python代写 C/C++代写 数据结构代写 C语言代做 Java代做 C++代做 Matlab代写 R语言代写 R语言代做

数据库代做:Query Optimization代写 Assignment代写 TPC-H database代写 Project代写 - 代做数据库

发布日期:2021-07-24 15:51:12 浏览次数:

CS 564, Fall 2019Query Optimization代写 In this assignment, you will still use SQLite3 to perform various queries on TPC-H database (introduced in assignment 2)Assignment #4: Query OptimizationDue Date: TBA. No late days.Project Grade Weight: 15% of the total gradeIntroduction Query Optimization代写In this assignment, you will still use SQLite3 to perform various queries on TPC-H database (introduced in assignment 2). However, for this assignment, the TPC-H database you’ll be working with in this assignment is about 1.2 GB (scale factor = 1) instead of 100MB in assignment 2. We have provided you the TPC-H database file, available here.The goal of this assignment is to help you understand query optimization from hands-on experience. Specifically, you will be asked to rewrite several given queries to make these queries as fast as possible.Query Optimization代写QueriesFor each query below, you are going to optimize it through various strategies (e.g., to run with a different join order, to push grouping operations below a join, to add indexes to the database, etc.) and put your optimized query in a separate file. For example, given query2.sql, your need to save your rewritten query in query2_opt.sql. Query Optimization代写query2.sqlquery3.sqlquery4.sqlMeasuring PerformanceNote that each file above starts with .timer on to print the execution time as below after query results.Run Time: real 0.119 user 0.039955 sys 0.041150Query Optimization代写As the execution time varies each time, you can run the same query five times to measure the average execution time. You only need to collect the user time (instead of real/sys time) for this assignment.Modifications on DatabaseQuery Optimization代写For this assignment, please download the provided database and only modify your local copy of the database. For any modifications you need to make on the database (e.g. indexes), you need to provide a file named preprocessing.sql and run this file before running your rewritten query. You also need to provide a file named clean.sql to clean up any changes you made. (Remember to clean any changes you made before measuring your baseline, i.e. provided queries)Query Optimization代写Requirement on creating indexes: the final, optimized queries must all run against the same database, i.e., the same set of indexes and no more than three indexes should be created per table.ReportQuery Optimization代写Fill up a report using the template file, report.txt, describing how you optimize each query and the percentage of improvements after optimization.Measure the percentage of improvements (using query2 as anexample)Run query2.sql multiple times and take down the average execution time (user time) ast_baseRun query2_opt.sql multiple times and take down the average execution time (usertime) as t_opt

所有的编程代写范围:essayghost为美国、加拿大、英国、澳洲的留学生提供C语言代写、代写C语言、C语言代做、代做C语言、数据库代写、代写数据库、数据库代做、代做数据库、Web作业代写、代写Web作业、Web作业代做、代做Web作业、Java代写、代写Java、Java代做、代做Java、Python代写、代写Python、Python代做、代做Python、C/C++代写、代写C/C++、C/C++代做、代做C/C++、数据结构代写、代写数据结构、数据结构代做、代做数据结构等留学生编程作业代写服务。
X

截屏,微信识别二维码

微信号:EG1hao

(点击微信号复制,添加好友)

微信号已复制,请打开微信添加咨询详情!