Method of index recommendation for NoSQL database
First Claim
1. A method for indexing a document database, comprising:
- determining, according to user'"'"'s access status on a plurality of documents in the document database, index indicators from attributes of respective fields of the plurality of documents, wherein the index indicators are used for indexing the plurality of document, wherein the determining, according to user'"'"'s access status on a plurality of documents in the document database, index indicators from attributes of respective fields of the plurality of documents comprises;
recording user'"'"'s operation on the respective fields of the plurality of documents within a period of time;
collecting statistics about the attributes of the respective fields of the plurality of documents and collecting statistics about a number of times of a same operation for each attribute; and
determining the index indicators from the attributes according to the number of times of a same type of operation for each attribute;
dividing the plurality of documents into a plurality of document sets, wherein a number of the plurality of document sets is greater than or equal to a number of the index indicators; and
indexing the plurality of document sets according to the index indicators after dividing the plurality of documents.
1 Assignment
0 Petitions
Accused Products
Abstract
In one embodiment, a method for indexing a document database includes determining, according to user'"'"'s access status on a plurality of documents in the document database, index indicators from attributes of respective fields of the plurality of documents, wherein the index indicators are used for indexing the plurality of documents, dividing the plurality of documents into a plurality of document sets, indexing the plurality of document sets according to the index indicators. The method may include dividing a plurality of documents in a document database into document sets by utilizing an attribute that a document database is easy to be divided into chunks, and may effectively implement indexing of the document database for the document sets according to another embodiment.
15 Citations
18 Claims
-
1. A method for indexing a document database, comprising:
-
determining, according to user'"'"'s access status on a plurality of documents in the document database, index indicators from attributes of respective fields of the plurality of documents, wherein the index indicators are used for indexing the plurality of document, wherein the determining, according to user'"'"'s access status on a plurality of documents in the document database, index indicators from attributes of respective fields of the plurality of documents comprises; recording user'"'"'s operation on the respective fields of the plurality of documents within a period of time; collecting statistics about the attributes of the respective fields of the plurality of documents and collecting statistics about a number of times of a same operation for each attribute; and determining the index indicators from the attributes according to the number of times of a same type of operation for each attribute; dividing the plurality of documents into a plurality of document sets, wherein a number of the plurality of document sets is greater than or equal to a number of the index indicators; and indexing the plurality of document sets according to the index indicators after dividing the plurality of documents. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. An apparatus for indexing a document database, comprising:
-
at least one hardware processor configured to execute one or more modules;
a first determining module configured to cause the at least one processor to determine, according to user'"'"'s access status on a plurality of documents in the document database, index indicators from attributes of respective fields of the plurality of documents, wherein the index indicators are used for indexing the plurality of documents, wherein the first determining module further comprises;a recording module configured to cause the at least one processor to record user'"'"'s operation on the respective fields of the plurality of documents within a period of time; a first statistics collecting module configured to cause the at least one processor to collect statistics about the attributes of the respective fields of the plurality of documents and collect statistics about a number of times of a same operation for each attribute; and a second determining module configured to cause the at least one processor to determine the index indicators from the attributes according to a number of times of a same type of operation for each attribute; a dividing module configured to cause the at least one processor to divide the plurality of documents into a plurality of document sets; and an indexing module configured to cause the at least one processor to index the plurality of document sets according to the index indicators after dividing the plurality of documents. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
Specification