Free Essay

Databases Review

In:

Submitted By ashsdc
Words 1010
Pages 5
IFSC 7320 Midterm Review Topics Xiaowei Xu

1

Midterm will cover material from: • Lectures 1-­‐7 • Database Systems (M. Kifer, A. Bernstein and P. M. Lewis)

– Chapter 9 secAons 9.1 through 9.6.1 – Chapter 9 secAon 9.8 – Chapter 12 secAon 12.2.1

2

Midterm exam

• Day and Ame:

– Thursday, October 8, 2015 – 6 PM to 8 PM

• No books, homework assignments, lecture slides or any other documents are allowed for this exam.

– has to complete individually by each student

3

Topics covered on midterm: •





Physical disk organizaAon RAID levels Heap files Sorted files Indices – Integrated versus unintegrated – Clustered versus unclustered – Sparse versus dense – MulAple a[ribute search keys

4

Topics covered on midterm:

• MulAlevel indexing – ISAM – B+ Trees • Searching B+ Trees • InserAng into B+ Trees






Hash indices Choosing indices for queries Designing indices (SecAon 12.2.1) Index covering 5

Physical Disk Structure

6

Disk Latency • The distance between disk sectors in increasing order: 1.
2.
3.
4.

Two adjacent sectors on the same track Two sectors on same track Two sectors on the same cylinder Two sectors on different cylinders

7

RAID Systems • RAID (Redundant Array of Independent Disks) is an array of disks configured to behave like a single disk with – Higher throughput • MulAple requests to different disks can be handled independently • If a single request accesses data that is stored separately on different disks, that data can be transferred in parallel

– Increased reliability • Data is stored redundantly • If one disk should fail, the system can sAll operate 8

Striping • Data that is to be stored on mulAple disks is said to be striped – Data is divided into chunks • Chunks might be bytes, disk blocks etc.

– If a file is to be stored on three disks • First chunk is stored on first disk • Second chunk is stored on second disk • Third chunk is stored on third disk • Fourth chunk is stored on first disk • And so on 9

The Striping of a File Across Three Disks F1

F2

F3

F4

10

Levels of RAID System • Level 0: Striping but no redundancy – A striped array of n disks – The failure of a single disk ruins everything

11

RAID Levels (con’t) – Level 1: Mirrored Disks (no striping) • An array of n mirrored disks – All data stored on two disks

• Increases reliability – If one disk fails, the system can conAnue

• Increases speed of reads – Both of the mirrored disks can be read concurrently

• Decreases speed of writes – Each write must be made to two disks

• Requires twice the number of disks 12

RAID Levels (con’t) • Level 3: Data is striped over n disks and an (n
+1)th
disk is used to stores the exclusive or (XOR) of the corresponding bytes on the other n disks – The (n+1)th disk is called the parity disk – Chunks are bytes

13

Level 3 (con’t) • Redundancy increases reliability – Secng a bit on the parity disk to be the XOR of the bits on the other disks makes the corresponding bit on each disk the XOR of the bits on all the other disks, including the parity disk – 1 0 1 0 1

1 (parity disk) – If any disk fails, its informaAon can be reconstructed as the XOR of the informaAon on all the other disks 14

Level 3 (con’t) • Whenever a write is made to any disk, a write must by made to the parity disk – New_Parity_Bit = Old_Parity_Bit XOR (Old_Data_Bit XOR New_Data_Bit)

• Thus each write requires 4 disk accesses • The parity disk can be a bo[leneck since all writes involve a read and a write to the parity disk 15

RAID Levels (con’t) • Level 5: Data is striped and parity informaAon is stored as in level 3, but – The chunks are disk blocks – The parity informaAon is itself striped and is stored in turn on each disk • Eliminates the bo[leneck of the parity disk

– Level most ogen recommended for transacAon processing applicaAons

16

RAID Levels (con’t) • Level 10: A combinaAon of levels 0 and 1 (not an official level) – A striped array of n disks (as in level 0) – Each of these disks is mirrored (as in level 1) • Achieves best performance of all levels • Requires twice as many disks

17

MulAple A[ribute Search Key • CREATE INDEX Inx ON Tbl (A+1, A+2) • Search key is a sequence of a[ributes; index entries are lexically ordered • Supports finer granularity equality search:

– “Find row with value (A1, A2) ”

• Supports range search (tree index only): – “Find rows with values between (A1, A2) and (A1ʹ′, A2ʹ′) ”

• Supports parAal key searches (tree index only): – Find rows with values of A+1 between A1 and A1ʹ′ – But not “Find rows with values of A+2 between A2 and A2ʹ′ ”

18

Pages accessed when selecEng from a B+ tree 1

2

3 7

8

4 10

11

5 6

SELECT *
FROM Student S
WHERE S.name = “karen”

9

12

Pages accessed: 1, 3, 8

19

Pages accessed when selecEng from a B+ tree 1

2

3 7

8

4 10

11

5 6

9

SELECT *
FROM Student S
WHERE S.name > john AND S.name < smith

12

Pages accessed: 1, 2, 7, 8, 9, 10, 11

20

Handling InserAons -­‐ Example - Insert “vince”

21

Handling InserAons -­‐ Example - Insert “vince”

22

Handling InserAons (cont’d) - Insert “vera”

vince

23

Handling InserAons (cont’d) – Insert “vera”: Since there is no room in leaf page:
1. Create new leaf page, C
2. Split index entries between B and C (but maintain sorted order)
3. Add separator entry at parent level

24

Handling InserAons (cont’d) Insert “rob”.

25

Handling InserAons (con’t) – Insert “rob”. Since there is no room in leaf page A:
1. Split A into A1 and A2 and divide index entries between the two (but maintain sorted order)
2. Split D into D1 and D2 to make room for additional pointer 3. Three separators are needed: “sol”, “tom” and “vince”

26

Handling InserAons (cont’d) – When splitting a separator page, push a separator up
– Repeat process at next level
– Height of tree increases by one

27

Similar Documents

Premium Essay

Database Design Final Review

...Database Final Exam review 1. What is data? Data are values of qualitative or quantitative variables, belonging to a set of items 2. What is information? Data becomes information after it has been processed to add context, relevance and purpose. 3. Role of data and information – Data and information allow users to make better decisions based on good information and data 4. Field – a column in a table which is a property of an entity (attribute) 5. Record – A row or tuple in a table 6. Tuple – A record or row in a table 7. ACID - ACID stands for Atomicity, Consistency, Isolation, and Durability. Atomicity means if one part of the transaction fails, all of the transaction fails, leaving the database unchanged. Consistency means the data written must be valid according to all the rules and the rules are applied from state to state. Isolation means that the data used during the execution of a transaction cannot be used by a second transaction until the first one is completed. It is executed as if it were being executed serially. Durability ensures that once transaction changes are done, they are permanent and cannot be undone or lost, even in the event of a system failure. 8. What is data redundancy and which characteristics of the file system can lead to it? Data redundancy exists when unnecessarily duplicated data are found in the database. It is the result of poorly designed databases which allow the data to be stored in different locations...

Words: 2014 - Pages: 9

Premium Essay

Database Design Chapter 1 Review Questions

...has to tell the computer what to do, and how to do it. Causing the program to have much more lines of code than should be needed. 4. It is a software tool that makes it possible to organize data in a database. Its functions are data dictionary management, data storage management, data transformation and presentation. 5. Structural independence exists when you can change the file structure without affecting the application's ability to access the data. If it did not exist, any change to a files structure would require several extra steps for every single record in the file. 6. Data is raw facts that have not been processed. Information is data that has been processed and given context. Databases help to organize the manipulation of data to create information by providing an organizational structure that makes relationships and connections between data explicit. 7. The DBMS serves as the intermediary between the user and the database. Some advantages are improved data sharing, data security, data access, decision making, and increased end-user productivity. Disadvantages are increased costs, management complexity, maintaining currency, vendor dependence, and frequent upgrade cycles. 8. The databases are single user database, desktop database, multiuser database, workgroup...

Words: 480 - Pages: 2

Premium Essay

Compliance Review

...Compliance Program / Annual Procedure Review Rule 206(4)-7 of the Investment Advisers Act creates a fiduciary responsibility for investment advisers to review annually their policies and procedures to determine their adequacy and the effectiveness of their implementation. As part of this review, all policies, procedures and responsibilities of an adviser must be reviewed, and the findings documented. The review should consider all factors that might suggest a need to revise the policies and procedures including any compliance matters that occurred during the year, any changes in the adviser’s or its affiliates business activities, or changes to applicable regulations. Reviews should be conducted by independent individuals (e.g., the department manager) not immediately responsible for implementation of a particular procedure. An overall review and approval of the adviser’s policies and procedures should be completed by the Chief Compliance Officer and should be submitted to the adviser’s Management Committee or Executive Officers for Final Action. |Procedure | |Summary & |Recommended |Reviewer & | |Completion Date & | |Reviewed |Findings |Conclusions |Change/Update |Date of Review |Review by CCO |Final Actions ...

Words: 276 - Pages: 2

Premium Essay

Craig Anderson Heat And Violence

...The goals of a literature review are to provide the reader with a critical analysis of scientific literature about a specific topic or question. Writing a summary about other works can demonstrate the depth of familiarity of a chosen topic. In order to further one's understanding, or research, studying the works of others is important because multiple disciplines may have competing explanations for a given subject. Literature review is also structured in a particular style that creates a uniform way for writers to articulate their ideas in a fashion the reader is familiar with. Craig Anderson uses the APA guidelines to create a clear structure for his review studying the effects of heat and violence. The structure of a literature review typically follows a certain format and order. In Anderson's, review Heat and Violence, he starts this process with a title that describes what the article is about. Following the title of the paper is an abstract, or overview, of what the entire article is about. Because there are a number of...

Words: 740 - Pages: 3

Free Essay

Working on It

...Riverside Casino and Golf Resort / Stacy Benson Topic Title Performance Reviews NO. This title won’t work. What about performance reviews? If you were doing a simple research paper you could write about performance reviews based on research alone. In this Sr Paper you must determine the state of the art based on your Literature Review. Then you will give the background of the problem and discuss it. This must all lead to two Courses of Action (COAs; solutions) that are tied to your title and problem. You need a “product” such as a process, a plan, a strategy, a program – something that can be recommended and implemented. Problem Statement (if not finalized post a draft – focus on the "pain.") The problem is that after initial training employees are not being reviewed for current performance. Suggest that after this initial statement you add something more about the problem. Brief Topic Overview The casino is experiencing a high turnover rate of employees because after their initial training they are put on the floor without any further review. In the handbook employees are supposed to have a review after 90 days but they are not being implemented. This leaves the casino with under qualified employees that eventually terminate their employment due to not feeling able to meet the high demands. The solution to this problem, if it is the problem, is simple. Just IMPLEMENT PERFORMANCE REVIEWS. You can see...

Words: 640 - Pages: 3

Premium Essay

Mkt 420 Week 2 Individual Assignment

...Peer Evaluation for MKT 420 Your Name: KYRIA AHO Fill in the blanks for each team member (but not yourself) as if you were writing an evaluation or recommendation for that person. ONLY ONE TEAM MEMBER MAY BE RECOMMENDED FOR PROMOTION. Consider if you were assigned to another team, which team member you would want to be your boss. Consider who you’d like to work with again. Consider who you’d go to extremes to avoid working with if you had a say. Here is the format for peer evaluations. Include the team member’s full name (1), and be specific about (2) what the team member did or did not do. At the end, if you were employed with this person, (3) would you recommend (a) Promoting, (b) Retaining (Keep in position), (c) Retaining with counseling to improve performance or (d) firing/replacing. Please keep in mind that in most business situations, only one person in a group would likely be promoted. Thus a recommendation to promote would be reserved for the truly exceptional team member Team Member 1: LEXA CREAMER As a team member with Lexa Creamer on the team marketing plan project, I feel qualified to speak about his/her job performance. Lexa’s contribution to the project was timely and significant. She accepts correction easily and is always willing to assist in any way that she can. I believe Lexa’s strengths are enthusiasm and timely submission of her work. I believe her weakness is the lack of flexibility. Lexa had to miss some of the meetings due to time conflicts...

Words: 669 - Pages: 3

Premium Essay

Argument

...Why did we choose that particular topic or article to be reviewed? As for this assignment, our group has all agreed to choose the article titled ‘Stress Management’ as the article that we need to review. Why we chose this article is absolutely because it is easy to be reviewed. This article has much points and ideas in it. Besides, we chose this article because it is exactly and definitely related to our life as university students. So, we can easily put some ideas as our experiences to review this article. This article teaches us much about stress; what stress actually is and what do make us stressed. This article also gives us knowledge about some stress-management techniques as to overcome this particular problem. As students, we cannot run away from this problem, and we need to face it throughout our whole life as a human. Not only students, all human beings will face any kind of stress either teachers, farmers and also ministers. This article also tells us that stress is not always bad, but sometimes stress can be beneficial to us when it makes our work better and done energetically. We deeply think about how we will think to review this article so we will not face too much obstacle in order to finish this group assignment. Making notes on the article read The five articles that we choose is only about two pages each and these articles have many points and ideas to be taken and used. We need to take notes on these articles to determine which article is the best to be...

Words: 645 - Pages: 3

Free Essay

Engl 135 Entire Course

...com/product/engl-135-entire-course/ Contact us at: SUPPORT@ACTIVITYMODE.COM ENGL 135 ENTIRE COURSE 1. ENGL 135 Week 1-7 All Discussion Questions 2. ENGL 135 Week 1 – Restaurant Evaluation 3. ENGL 135 Week 2 – Omnivore’s Dilemma Book Review 4. ENGL 135 Week 3 – Position Paper 5. ENGL 135 Week 4 – Research Proposal 6. ENGL 135 Week 5 – Annotated Bibliography 7. ENGL 135 Week 6 – Research Paper Draft ENGL 135 ENTIRE COURSE To purchase this visit following link: http://www.activitymode.com/product/engl-135-entire-course/ Contact us at: SUPPORT@ACTIVITYMODE.COM ENGL 135 ENTIRE COURSE 1. ENGL 135 Week 1-7 All Discussion Questions 2. ENGL 135 Week 1 – Restaurant Evaluation 3. ENGL 135 Week 2 – Omnivore’s Dilemma Book Review 4. ENGL 135 Week 3 – Position Paper 5. ENGL 135 Week 4 – Research Proposal 6. ENGL 135 Week 5 – Annotated Bibliography 7. ENGL 135 Week 6 – Research Paper Draft ENGL 135 ENTIRE COURSE To purchase this visit following link: http://www.activitymode.com/product/engl-135-entire-course/ Contact us at: SUPPORT@ACTIVITYMODE.COM ENGL 135 ENTIRE COURSE 1. ENGL 135 Week 1-7 All Discussion Questions 2. ENGL 135 Week 1 – Restaurant Evaluation 3. ENGL 135 Week 2 – Omnivore’s Dilemma Book Review 4. ENGL 135 Week 3 – Position Paper 5. ENGL 135 Week 4 – Research Proposal 6. ENGL 135 Week 5 – Annotated Bibliography 7. ENGL 135 Week 6 – Research Paper Draft ENGL 135 ENTIRE COURSE To purchase this visit following link: http://www...

Words: 498 - Pages: 2

Premium Essay

Maxon Technologies Case Summary

... Maxon Technologies Sales Letter Subject: Connect with this top line solution; enjoy leverage in your business while creating a classy experience in your operations. Hello, Maxon Technologies have been at the forefront of supplying Corrosion Retardant Solution across the board for various industries since the inception of the business. We help to give our customers the lift they need to recover the worn out metal surfaces of their machinery and equipment without any need for disassembling. This product is based on many seasons of research and it has been creating huge wins in the market for many years. In view of the high positive feedback it has enjoyed, we are excited to share this great information with you. Maxon CRS makes the surfaces of machines more wear-resistant. It protects metals from rust and saves you the huge maintenance costs that could be associated with this. This means that you can track your recurring expenses and redirect your resources to other exciting profit centers of your business. This is a huge win for those who understand how to navigate the tides of contemporary business. Statistics indicate that about two to four percent of most country’s GDP has been lost through the incessant wearing out of mechanical parts. This is estimated to cost about 1 557 Billion USD per year. Maxon Technologies takes your business out of this negative cycle as it is a robust component for the savvy business owner. It is important to mention that our product is easy to...

Words: 522 - Pages: 3

Premium Essay

Professional Review Activity Analysis

...A professional review body is any entity or governing body of a health entity which conducts professional review activity. This includes the committees of the medical staff assisting the governing body. Professional review activity is activity of a healthcare entity with regard to the evaluation of a provider with recaged to privileges, membership and scope of practice. This would typically be performed on initially application for privilege of review every 2 years by the medical staff. This could also further include on going peer review process with regard to patient outcomes or complaints. Professional review action is action that is taken as the result of the professional review activity. Professional review activity is reportable...

Words: 326 - Pages: 2

Free Essay

Hardware Websites

...technology discussion forum . It provides its readers with detailed specs for thousands of computer hardware products, reviews, expert analysis and comparisons. Take the Asus X99 Rampage V Extreme motherboard for example, it belongs to a well know product line known as the Republic of Gamers (ROG). Overclock3D takes this motherboard and breaks it down piece by piece, they go into details of each aspect of this motherboard, from new features that was not available in previous Rampage motherboard models, to over clocking options, and even enhance their review with videos, screen shots, and bench testing results to verify motherboards' specs and capabilities. For the computer enthusiast, this website with an easy to navigate layout, and attractive format, brings all the new hardware to one place, and provides a tremendous amount of information regarding computer hardware. Additionally, the site has several tools that gives its readers the opportunity to discuss, ask questions, and expand on hardware uses through comments, forum, frequently asked questions and other threads in the Community section. Overclock3D was initially dependant on users input through the forum platform. Their enthusiasm however turned into a full scale professional publication, the website became a registered company in the UK and expanded its operations into other websites as well. Reviews done to hardware such as the Rampage V are now handled by professionals like Tom Logan their Director and Chief Editor...

Words: 308 - Pages: 2

Free Essay

Butterfly Affect

...Butterfly leaked just 24 hours before its official release date, March 15, and that most major music websites published their reviews of the album within three days of the leak. On such an immediate deadline for filing a feature-length album review, it’s nearly impossible for a young critic to stunt. At Jezebel, Clover Hope just wrote the truth. With bits of personal and political context interspersed, Hope framed her review as a first-take impression of the “overwhelming blackness” of an album about funk and self-destruction. “This initial feeling is suffocating,” Hope wrote. “It’s the essence of Dis Tew Much.” I think most fans and critics would agree that Kendrick Lamar's To Pimp a Butterfly is, indeed, overwhelming. I reviewed To Pimp a Butterfly in about 72 hours. In that narrow band of time, I "got" the album's messages and themes but couldn’t grasp the motivations for the album’s sound. Why, in. You’ll recall that To Pimp a Butterfly leaked just 24 hours before its official release date, March 15, and that most major music websites published their reviews of the album within three days of the leak. On such an immediate deadline for filing a feature-length album review, it’s nearly impossible for a young critic to stunt. At Jezebel, Clover Hope just wrote the truth. With bits of personal and political context interspersed, Hope framed her review as a first-take impression of the “overwhelming blackness” of an album about funk and self-destruction. “This initial feeling...

Words: 332 - Pages: 2

Premium Essay

Army

...1.You must take the Blackboard Basics for Students Course. Then take the Blackboard 101 quiz and receive a “2” as a score. 2.You must complete the Advanced Leader Course Common Core (ALC CC) DL Student Letter of Agreement. You must also fill out all required information. You must recieve a total score of "6". 3.You must fill out all required contact information, including your NCO Support Channel and personal information using the spreadsheet that is provided and receive a "1" as a score. 4.You must read and review the ALC Course Syllabus. Once you understand all items covered in the Syllabus you must click the "Mark Reviewed" button at the bottom left corner. The Syllabus status will then change to "Reviewed." 5.You must read and review the ALC ALARACT 232/2010. Once you understand all items covered in the ALARACT 232/2010 you must click the "Mark Reviewed" button at the bottom left corner. The ALARACT status will then change to "Reviewed https://ncoes.ellc.learn.army.mil. Navigation Instructions You must access the course in accordance with these directions to successfully begin your course. To begin your course you will access www.train.army.mil. On the top right hand side you will click the login button, use your AKO user name and password. Click on the “My Courses” tab, then “My Active Enrollments”. The Advanced Leaders Course Common Core (ALC-CC) link will appear; linking you to your course. After this initial login, you will then use https://ncoes.ellc.learn.army...

Words: 266 - Pages: 2

Free Essay

Mgmt410

...Web Navigation Steps First, familiarize yourself with O*NET by reviewing the information provided on the About O*NET page. Select the Content Model link, and review the conceptual model underlying this project. Return to Home (by clicking on the O*NET logo at the top of the page) and select the Visit O*NET OnLine link. Go to the My Next Move and enter an occupation you are familiar with (e.g., one you have held or hope to hold) in the keyword search box, or use the Industry search feature if you prefer.) Select the Search or Browse button. Select the occupation that best matches what you are looking for (or use other search terms until you find something that interests you) and review all of the data provided for that position. After completion of these navigation steps, proceed to complete the assignment by discussing the learning questions below. Learning Questions How easy was it to find the specific occupation you were looking for, and how comprehensive was the information provided about that occupation? What did you think of the occupations O*NET suggested as matching your skills? Was the occupation you are in or preparing for among those listed? As an HR professional, how could O*NET be useful in conducting a job analysis? Explain specifically how you would use the data from this site to assist your organization. As a director of human resources, would you have your staff use this site? Why or why...

Words: 251 - Pages: 2

Free Essay

Hard Side of Change Management 1

...paid to the hard factors first, transformation programs will break down before the soft elements come into play. * A study by Harvard Business Review revealed that outcome (success or failure) of a change program depends on four hard factors * Duration * Integrity * Commitment * Effort Page 2 – DURATION * Refers to the project duration, particularly the time between project reviews. * It is assumed that the longer a program, the more likely it is to fail. * Window of opportunity will close, key objectives will be forgotten, key supporters will lose enthusiasm are some of the reasons for this assumption. * Although, contrary to popular perception, a long project that is reviewed frequently, is more likely to succeed than a short project that is not reviewed frequently. * Time between reviews is more critical than a project’s life span. Page 3 – * Transformation projects should be reviewed at least once in two months since the probability that change initiative will run into trouble rises exponentially if time between reviews is more than eight weeks. * The higher the complexity of the project, the more frequently it should be reviewed to keep the project on the track. * Scheduling milestones and assessing their impact are the best way by which executives can review the execution of projects, identify gaps, and spot new risks. * Most effective milestones are those that describe major actions or achievements...

Words: 260 - Pages: 2