Database - Interview Questions and Answers for 'Sears' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Database - Interview Questions and Answers for 'Sears' - 2 question(s) found - Order By Newest

Frequently asked to experienced developers. Recently asked in many US interviews.
  Q1. What is database deadlock ? How can we avoid them?Database
Ans. When multiple external resources are trying to access the DB locks and runs into cyclic wait, it may makes the DB unresponsive.

Deadlock can be avoided using variety of measures, Few listed below -

Can make a queue wherein we can verify and order the request to DB.

Less use of cursors as they lock the tables for long time.

Keeping the transaction smaller.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   database   architecture     Asked in 7 Companies      expert        frequent


Related Questions

  What is a Deadlock ?
 What are the four situations that are required for deadlock to happen ?
 What is Livelock in relation to deadlock ?
 Write Java code that would cause deadlock ?
 How can multi threading lead to a deadlock ?


 Q2. How Cassandra provides better Read performance than Oracle Indices ?Database
Ans. Cassandra uses Hash Search which provides a look time of O(1) whereas Oracle Indices uses Binary Search that provide a lookup time of O(Log n).

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     cassandra  hash search  hash search vs binary search


Related Questions

 What is the difference between Oracle , Cassandra and Redis ?
 What is Apache Cassandra ?
 Is Cassandra read optimized or Write optimized ?
 How different is the Search algorithm when we query Cassandra Tables and When we query Oracle Tables ?
 Can we query Cassandra Tables without specifying the partition id in the where clause ?
 What are the restrictions on querying Cassandra Tables ?
 Which of the following databases - Cassandra / Oracle - provides more flexibility about querying the database ?
 Why was Cassandra written in Java and not C++ ?


 Q3. Binary Search requires that the collection should beAlgorithm
a. Sorted in Ascending Order
b. Sorted in Descending Order
c. Sorted in any Order
d. Unsorted

Ans.c. Sorted in any Order


Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: