Question

In: Computer Science

If a heavily updated table contains many indexes, the time required to rebuild those indexes may...

If a heavily updated table contains many indexes, the time required to rebuild those indexes may degrade the overall performance of the database.

Select one:

a. True

b. False

Solutions

Expert Solution

True

The update query on the table having multiple indexes will slow down the overall performance of the database.

Index: Index in the database table is used to speed up the select operation where the index column is used to search the required data and return the matching record in master table. Using index, instead of traversing each record one by one, only the index column is used to match the input criteria. An index can be based on a primary key column, on a candidate key OR it can be on a non-key attribute.

Example: A user table can have the below index:

(User_ID) : It will fetch the data based on the user id of the user by traversing ony the user id index. When the user_id matches with required record, it will give the other attribute’s values from the table as it hold a pointer to the all data for the searched user_id. If query needs U01 data, index will point to all related data for U01 and return the result faster.

Performance while Update on table with many index: When the table has multiple index, it will use multiple columns in indexes. The indexes are the copy of the index column in a separate column. Whenever the data of the table gets update, index column data will also get changed. It will require the change of index column as well at multiple indexes. The whole process will eventually slow down the database performance.

Example: Suppose the user table of above example has below indexes:

  1. (User_ID)
  2. (First_Name, User_ID)
  3. (User_ID, Department)

If the User_Id is updated in the table, it will require the update in all above index columns, which will slower the database performance.


Related Solutions

You may need to use the appropriate technology to answer this question. The following table contains...
You may need to use the appropriate technology to answer this question. The following table contains observed frequencies for a sample of 200. Row Variable Column Variable A B C P 18 42 48 Q 32 28 32 Test for independence of the row and column variables using α = 0.05. State the null and alternative hypotheses. H0: Variable P is independent of variable Q. Ha: Variable P is not independent of variable Q.H0: The column variable is independent of...
How many bits are required to represent all the elements currently in the Periodic Table?
How many bits are required to represent all the elements currently in the Periodic Table?
A department contains 10 part-time employees and 15 full-time employees. In how many ways can a...
A department contains 10 part-time employees and 15 full-time employees. In how many ways can a committee be formed with 6 members if it must have more full-time employees than part-time employees?
The table below contains observations of breakdown time of 3 different machines at a manufacturing site....
The table below contains observations of breakdown time of 3 different machines at a manufacturing site. The production manager believes that the main reason for machines breaking down is the difference in quality of raw material that comes from 3 different sources. On the contrary, the procurement department, which is responsible for supplies, considers as the main reason the old age of some production machines and their poor maintenance. Some young machine operators believe that the problem is more complicated;...
Done in c++ Read this file one time to determine how many records it contains. Be...
Done in c++ Read this file one time to determine how many records it contains. Be sure to check for a successful file open here. Close the file. Allocate memory dynamically to store the data from step 1. This dynamically allocated memory should be for an array of strings. The array size should be exactly the number of records from step 1. Reopen the file and read it a second time, storing each record into the array of strings from...
Consider the data in table below which shows the time required to produce a particular item....
Consider the data in table below which shows the time required to produce a particular item. Using that data, calculate the learning rate associated with this product. Units Labor Hrs 5 155 9 147 13 137 17 97 25 72
A Discounted Cash Flow is a required calculation to comply with many GAAP regulations. Hammer Time...
A Discounted Cash Flow is a required calculation to comply with many GAAP regulations. Hammer Time Inc, had the choice of purchasing a new machine for $38,900.   The following shows the Net Cash Flow of: 1. Not purchasing the new equipment 2. Purchasing the equipment Year                          No purchase                         Yes purchase 1   $89,930                                   $145,290   2                               $181,000   $164,910 3                               $181,000 $191,900   4                               $181,000 $199,900 5   $181,000                                   $210,900 Calculate the discounted cash flow for each scenario with an interest rate of 6.5% What is the NPV of buying the equipment?
Many people feel that cereal is healthier alternative for children over glazed donuts. Table #8.3.5 contains...
Many people feel that cereal is healthier alternative for children over glazed donuts. Table #8.3.5 contains the amount of sugar in a sample of cereal that isgeared towards children ("Healthy breakfast story," 2013) Estimate the mean amount of sugar in children cereal using a 95% confidence level. Table #8.3.5: Sugar Amounts(g) in Children’s Cereal 10 14 12 9 13 13 13 11 12 15 9 10 11 3 6 12 15 12 12
Many students accumulate debt by the time they graduate from college. Shown in the following table...
Many students accumulate debt by the time they graduate from college. Shown in the following table is the percentage of graduates with debt and the average amount of debt for these graduates at four universities and four liberal arts colleges. University % with Debt Amount($) College % with Debt Amount($) 1 72 32,970 1 83 28,754 2 68 32,110 2 94 29,000 3 58 11,228 3 56 10,201 4 64 11,853 4 49 11,015 a. If you randomly choose a...
The 2015 American Time Use Survey contains data on how many minutes of sleep per night...
The 2015 American Time Use Survey contains data on how many minutes of sleep per night an average college student gets. According to this survey, the minutes that college students sleep per night are right skewed with a mean of 529.9 minutes and standard deviation 135.6 minutes. Suppose we take a random sample of size 20. What is the probability that the mean of the 20 times is greater than 538 minutes? Answer --> It is not appropriate to calculate...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT