Question

In: Computer Science

Suppose your company has built a database application that runs on a centralized database, but even...

Suppose your company has built a database application that runs on a centralized database, but even with a high-end computer and appropriate indices created on the data, the system is not able to handle the transaction load, leading to slow processing of queries. What would be some of your options to allow the application to handle the transaction load?

Solutions

Expert Solution

In a centralized system, to handle the transaction load, query performance has to be improved.
Query processing should be done keeping in mind the below points:

  • Reducing the amount of memory and storage required for processing of the query.
  • Maximizing Throughput which means that the number of requests should that are processed in a given amount of time should be increased.
  • Response Time of the queries has to be reduced.
  • Memory and Storage required for processing has to be reduced.

Query Optimization can be done by following the below steps:

  1. Generating Query Tree: The root of this tree represents the whole query and leaf nodes are the tables of the query. While execution, the internal nodes are processed and at last the root is executed which produces the fianl result table.
  2. Query Plan Generation: This provides with the access path which define how the relational operations should be performed in a tree. The plan also tells how the temporary and intermediate tables should be processed.
  3. Code Generation: Code Generation is highly dependent on the Operating System. Here in the final step Execution Manager runs the query and performs the final result.

Hence we can generate all the query plans using the above 3 steps and choose the most optimized one.

A few more rules to be kept in mind:

  • The restrictive select operations should be performed before the other operations.
  • Performing Select before the Join operation reduces the number of tuples that are required for joining.
  • Cross Product Operations should be avoided as they result in huge intermediate tables that will require time for processing.

Related Solutions

Suppose a statistician built a multiple regression model for predicting the total number of runs scored...
Suppose a statistician built a multiple regression model for predicting the total number of runs scored by a baseball team during a season. Using data for n=200 samples, the results below were obtained. Complete parts a through d. Ind. Var. β estimate Standard Error Ind. Var.. β estimate Standard Error Intercept 3.88 17.03 Doubles (X3) 0.74 0.04 Walks (X1) 0.37 0.05 Triples (X4) 1.17 0.23 Singles (X2) 0.51 0.05 Home Runs (X5) 1.44 0.04 a. Write the least squares prediction...
The product offers life protection, savings and even has investment component. Even though it runs for...
The product offers life protection, savings and even has investment component. Even though it runs for a specified period, life assurance companies are flexible to extend cover so that they make sure that money became available to the policyholders dependents on their death. Identify and describe the variations under this product.                            [25 marks]
A finance company has a database of customer documentation, including application forms containing a substantial amount...
A finance company has a database of customer documentation, including application forms containing a substantial amount of personally identifiable information (PII). The database contains the records of over 10,000 customers. The database is only accessible from inside the network of the company – it is not directly exposed to the Internet. (15 marks total) Suggest a suitable data classification for this information held by this database and explain why this classification is appropriate. Suggest one threat actor, and why they...
A finance company has a database of customer documentation, including application forms containing a substantial amount...
A finance company has a database of customer documentation, including application forms containing a substantial amount of personally identifiable information (PII). The database contains the records of over 10,000 customers. The database is only accessible from inside the network of the company – it is not directly exposed to the Internet. i. Suggest a suitable data classification for this information held by this database and explain why this classification is appropriate.   ii. Suggest one threat actor, and why they might...
Maria has built a cafeteria called "Princess of Gourmai and More" since 1995. Amira runs her...
Maria has built a cafeteria called "Princess of Gourmai and More" since 1995. Amira runs her project that provides coffee from the most delicious coffee in the city. It serves around 800 cups of coffee a day, along with special soups, ready-made Italian sandwiches, and a large selection of delicious cheese cakes. Maria noticed that despite the store's popularity, she always maintains nearly the same revenue. Maria has contacted your staff, who is affiliated with a consulting firm, in her...
Design and implement a relational database application of your choice using MS Workbench on MySQL a)...
Design and implement a relational database application of your choice using MS Workbench on MySQL a) Declare two relations (tables) using the SQL DDL. To each relation name, add the last 4 digits of your Student-ID. Each relation (table) should have at least 4 attributes. Insert data to both relations (tables); (15%) b) Based on your expected use of the database, choose some of the attributes of each relation as your primary keys (indexes). To each Primary Key name, add...
For AT& T How has your organization responded to the design challenges? a) Is it centralized...
For AT& T How has your organization responded to the design challenges? a) Is it centralized or decentralized? How do you know? b) Is it highly differentiated? Can you identify any integrating mechanisms used by your organization? What is the match between the complexity of differentiation and the complexity of the integrating mechanisms that are used? C) Is behavior in the organization very standardized, or does mutual adjustment lay an important role in coordinating people and activities? What can you...
The centralized employee Travel Department of Ohno Company has expenses of $106,600. The department has serviced...
The centralized employee Travel Department of Ohno Company has expenses of $106,600. The department has serviced a total of 8,200 travel reservations for the period. The South Division has made 6,232 reservations during the period, and the West Division has made 1,968 reservations. How much should each division be charged for travel services? Do not round interim calculations. South Division $   West Division $   
The centralized employee travel department of Croce Company has expenses of $724,000. The department has serviced...
The centralized employee travel department of Croce Company has expenses of $724,000. The department has serviced a total of 5,000 travel reservations for the period. The South Division has made 2,850 reservations during the period, and the West Division has made 2,150 reservations. South Division West Division Sales $2,600,000 $2,420,000 Cost of goods sold 1,352,000 1,379,400 Selling expenses 520,000 484,000 Use the data provided to determine the divisional income from operations for the South and West divisions: Refer to the...
4. Even though Oracle has the second market share in the database industry (33.7%, behind IBM's...
4. Even though Oracle has the second market share in the database industry (33.7%, behind IBM's 34.1% in 2004), it has chosen to let IBM'DB2 customers use their future products (iFlex, Retek and Fusion). It may seem all the more strange to form this kind of "alliance" with the competitor just ahead of them. Analyze Oracle’s strategy using the theory of lock-in and Compatibility.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT