Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Datastructures used in DBMS

What are the datastructure used in DBMS like Oracle,MySQL & Sqlite for storing and retrieving records.

like image 862
Prabu Avatar asked Feb 02 '09 10:02

Prabu


People also ask

What data structure is used in databases?

A database index is the most widely used data structure that improves the speed of operations on a database table. They can be created using one or more columns of a database table, as a basis for rapid random lookups and efficient access of ordered records.

What is the structure of DBMS?

The database system is divided into three components: Query Processor, Storage Manager, and Disk Storage.

What type of data structure is used?

How are data structures used? In general, data structures are used to implement the physical forms of abstract data types. Data structures are a crucial part of designing efficient software. They also play a critical role in algorithm design and how those algorithms are used within computer programs.


1 Answers

Usually a clever implementation of B-Trees

From the above linked wikipedia article:

A B-tree of order m (the maximum number of children for each node) is a tree which satisfies the following properties:

  1. Every node has at most m children.
  2. Every node (except root and leaves) has at least m⁄2 children.
  3. The root has at least two children if it is not a leaf node.
  4. All leaves appear in the same level, and carry information.
  5. A non-leaf node with k children contains k–1 keys

The advantages of which are that data can be accessed in logarithmic time, as with most search trees (such as standard binary trees), but the timing properties are better in the average case.

like image 127
Kothar Avatar answered Oct 05 '22 11:10

Kothar