High speed non-concurrency controlled database
First Claim
1. A multi-threaded network database system, comprising:
- at least one processor coupled to a network; and
a memory coupled to the processor, the memory including a database and instructions adapted to be executed by the processor to;
create an update thread and a plurality of search threads;
assign each of a plurality of search queries, received over the network, to one of the plurality of search threads;
for each search thread;
search the database according to the assigned search queries, create a plurality of search replies corresponding to the assigned search queries, and send the plurality of search replies over the network; and
for the update thread;
create a new element according to new information received over the network, and without restricting access to the database for the plurality of search threads, write a pointer to the new element to the database using a single uninterruptible operation.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the present invention provide a method and system for high-speed database searching with concurrent updating, without the use of database locks or access controls, for large database systems. Specifically, a plurality of search queries may be received over a network, the database may be searched, and a plurality of search replies may be sent over the network. While searching the database, new information received over the network may be incorporated into the database by creating a new element based on the new information and writing a pointer to the new element to the database using a single uninterruptible operation.
80 Citations
100 Claims
-
1. A multi-threaded network database system, comprising:
-
at least one processor coupled to a network; and
a memory coupled to the processor, the memory including a database and instructions adapted to be executed by the processor to;
create an update thread and a plurality of search threads;
assign each of a plurality of search queries, received over the network, to one of the plurality of search threads;
for each search thread;
search the database according to the assigned search queries, create a plurality of search replies corresponding to the assigned search queries, and send the plurality of search replies over the network; and
for the update thread;
create a new element according to new information received over the network, and without restricting access to the database for the plurality of search threads, write a pointer to the new element to the database using a single uninterruptible operation. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)
-
-
21. A method for searching and concurrently updating a database, comprising:
-
creating an update thread and a plurality of search threads;
assigning each of a plurality of search queries, received over a network, to one of the plurality of search threads;
for each search thread;
searching the database according to the assigned search queries, creating a plurality of search replies corresponding to the assigned search queries, and sending the plurality of search replies over the network; and
for the update thread;
creating a new element according to new information received over the network, and without restricting access to the database for the plurality of search threads, writing a pointer to the new element to the database using a single uninterruptible operation. - View Dependent Claims (22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37)
-
-
38. A computer readable medium including instructions adapted to be executed by at least one processor to implement a method for searching and concurrently updating a database, the method comprising:
-
creating an update thread and a plurality of search threads;
assigning each of a plurality of search queries, received over a network, to one of the plurality of search threads;
for each search thread;
searching a database according to the assigned search queries, creating a plurality of search replies corresponding to the assigned search queries, and sending the plurality of search replies over the network; and
for the update thread;
creating a new element according to new information received over the network, and without restricting access to the database for the plurality of search threads, writing a pointer to the new element to the database using a single uninterruptible operation. - View Dependent Claims (39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51)
-
-
52. A method for searching and updating a database, comprising:
-
receiving a plurality of search queries over a network;
searching the database;
sending a plurality of search replies over the network; and
while searching the database, modifying the database to incorporate new information received over the network, including;
creating a new element based on the new information, and without locking the database, writing a pointer to the new element to the database using a single uninterruptible operation. - View Dependent Claims (53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)
-
-
64. A system for searching and updating a database, comprising:
-
at least one processor coupled to a network; and
a memory coupled to the processor, the memory storing a database and instructions adapted to be executed by the processor to;
create a new element based on new information received over the network, and without restricting search access to the database, write a pointer to the new element to the database using a single uninterruptible operation. - View Dependent Claims (65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76)
-
-
77. A method for updating a non-concurrency controlled ternary search tree having a plurality of nodes, comprising:
-
creating a new node; and
updating a pointer within one of the plurality of nodes to reference the new node using a single store instruction. - View Dependent Claims (78, 79, 80, 81, 82, 83)
-
-
84. A method for updating a non-concurrency controlled ordered access key search tree having a plurality of vertical and horizontal nodes, comprising:
-
creating a new node; and
updating a pointer within one of the plurality of nodes to reference the new node using a single store instruction. - View Dependent Claims (85, 86, 87, 88, 89, 90)
-
-
91. A method for updating a non-locking linked list having a first element, a second element and a third element, the first element having a first pointer to the second element, and the second element having a second pointer to the third element, comprising:
-
creating a new element having a pointer to the third element; and
updating the first pointer to reference the new element using a single store instruction. - View Dependent Claims (92, 93, 94, 95, 96)
-
-
97. The method of claim 97, wherein said updating includes between 50,000 and 130,000 updates per second.
-
98. A method for searching and concurrently updating a database, comprising:
-
creating an update thread and a plurality of search threads;
assigning each of a plurality of search queries, received over the network, to one of the plurality of search threads;
for each search thread;
searching the database according to the assigned search queries, creating a plurality of search replies corresponding to the assigned search queries, and sending the plurality of search replies over the network; and
for the update thread;
without restricting access to the database for the plurality of search threads, writing a pointer to an existing element to the database using a single uninterruptible operation. - View Dependent Claims (99, 100)
-
Specification