Question

In: Computer Science

1) Describe the performance impact of using the LIKE operation with a wild card character at...

1) Describe the performance impact of using the LIKE operation with a wild card character at the beginning of the value.

2) Under what circumstances is a non-matching index scan performed?

3) A query is written to access a single table. Furthermore, that query will return only a single row because an equality predicate is coded on the primary key for the table. A unique index exists to support the primary key. What type of access is likely to be the most efficient for that query?

4) How can stored procedures be used to optimize performance in a client/server application?

5) Under what circumstances will a table scan outperform indexed access?

Solutions

Expert Solution

Note: Done accordingly. Please comment for any problem. Please Uprate. Thanks

1)

LIKE operations with wildcard characters at the the beginning can be detrimental to database/application performance because there is no way to index a wild card. "Because the high-order portion of the column is not known, traversing a b-tree index structure is impossible." Here is a relevant quote from MySQL Internals Manual: “The optimizer will use an index (range search) for
column1 LIKE ’x%’
but not for
column1 LIKE ’%x’
That is, there is no range search if the first character in the pattern is a wildcard.”

2)

Nonmatching index scans are used when a starting point cannot be determined because the first column in the index key is not specified (does not start from root of b-tree.)

3)

A forced access path is likely to be used here since the table holds specific information for a single purpose as defined by business rules.

4)

If the network between the client and server cannot handle all of the traffic issuing SQL statements, then a stored procedure (which would issue on command on the client side, and execute several commands on the server is) can help with network performance.

5)

Table scans will be faster than index access scans when the database tables are extremely small.


Related Solutions

Critically describe the impact of a good marketing strategy on an Organisations performance?
Critically describe the impact of a good marketing strategy on an Organisations performance?
In less than 100 words to describe the impact of Information Technology to the business operation...
In less than 100 words to describe the impact of Information Technology to the business operation of a company.
Describe briefly how the operation of a Web proxy server increases the performance seen by Web...
Describe briefly how the operation of a Web proxy server increases the performance seen by Web clients (browsers).
Describe how you would adopt a balanced score card approach to evaluate your project performance. Your...
Describe how you would adopt a balanced score card approach to evaluate your project performance. Your response should identify specific measures you would use as well as the approach you would take to obtain the measures you identify.
1)Trace the impact of a new free credit card on the us economy. How would this...
1)Trace the impact of a new free credit card on the us economy. How would this differ from a fee credit card? 2)How does the treasury call in bonds? Trace the effect of calling in bonds on the US economy
1) State and describe the Harrod-Domar model of economic growth.Discuss the character of the Lewis...
1) State and describe the Harrod-Domar model of economic growth. Discuss the character of the Lewis model and how that model forms a response to one of the major criticisms of the H-D presentation. Use a graphical presentation in your answer.
1) Describe the relationship between wild bees or little wasps and flowering plants. Is it mutualistic,...
1) Describe the relationship between wild bees or little wasps and flowering plants. Is it mutualistic, symbiotic or both ? (check textbook) elements of ecology ecology lab ( final exam ) 2 ) How important is the function of insect pollination for humans ?
describe the negative impact of using inappropriate measurements, including examples
describe the negative impact of using inappropriate measurements, including examples
Describe an example of using the executive coaching technique to improve employee performance.
Describe an example of using the executive coaching technique to improve employee performance.
Describe the operation of an OPAMP-based oscillator using the concept of a basic oscillator feedback circuit....
Describe the operation of an OPAMP-based oscillator using the concept of a basic oscillator feedback circuit. Your description must include all pertinent equations relating the overall closed loop gain and the open-loop and feedback gain
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT