File: NoSQL-8.html

package info (click to toggle)
nosql 0.9-0
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 1,364 kB
  • ctags: 225
  • sloc: perl: 3,766; sh: 476; makefile: 41
file content (36 lines) | stat: -rw-r--r-- 1,365 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Draft//EN">
<HTML>
<HEAD>
<TITLE>NoSQL: Fast access methods</TITLE>
</HEAD>
<BODY>
<A HREF="NoSQL-7.html">Previous</A>
<A HREF="NoSQL-9.html">Next</A>
<A HREF="NoSQL.html#toc8">Contents</A>
<HR>
<H2><A NAME="s8">8. Fast access methods</A>  </H2>

<P>The NoSQL operator 'nsq-search' may be used to execute one
of two fast access methods, binary or hashtable search.
<P>These methods are useful when the key field values of a
number of rows in an existing, large rdbtable is known
in advance, a common situation.
<P>One example of updating an rdbtable using these methods is
as follows.  First, 'nsq-search' is used to quickly obtain a
new, small rdbtable consisting of the desired rows from the
existing, large rdbtable.  Then 'nsq-ed' is used to update
the data in the new rdbtable, including generating new
rows, changing some rows, and marking certain rows for
deletion, if desired.  The next stage would be to use
'nsq-merge' to combine the new and old rdbtables into a
new, large rdbtable, which will still be in sort order
(both the old rdbtable and the new, small one will still
exist for backup and/or journaling purposes).  Note that
the last step could be done in the background.
<P>
<HR>
<A HREF="NoSQL-7.html">Previous</A>
<A HREF="NoSQL-9.html">Next</A>
<A HREF="NoSQL.html#toc8">Contents</A>
</BODY>
</HTML>