Method for utilizing fixed length field for optimizing iteration inquiry
A fixed-length field and iterative technology, applied in the application field of database data management, can solve the problems of unavailability, consuming a lot of memory, fast query speed, etc., and achieves the effect of fast query speed, fast positioning speed, and satisfying query requirements.
Image
Examples
Embodiment Construction
[0043] The purpose of this invention is to introduce a method for optimizing iterative query using fixed-length fields, and optimize the widely used iterative query method at present, so that users can obtain faster query speed when querying large amounts of data without consuming a large amount of memory . Specific embodiments are described in detail below, but not as a limitation to the present invention.
[0044] like figure 2 As shown, the iterative query method operating steps of the present invention are as follows:
[0045] Step 201, adding a fixed-length primary key field to the table to uniquely identify a record;
[0046] Step 202, taking out the primary key field values of all records satisfying the conditions from the database and storing them in a disk file;
[0047] Step 203, setting an iterator, and using the iterator to query in batches;
[0048] Step 204, the iterative query is completed, and the iterator and the binary file storing the primary key valu...
PUM
Login to View More Abstract
Description
Claims
Application Information
- IPC
- G06F17/30
- Inventors
- 鲁春怀
