1. A method comprising: determining a record schema of a set of entry(ies) in a Not-only-Structured-Query-Language (NoSQL) type database, the record schema being a treelike relationship between key hierarchies with a key as a node in each entry of the set of entry(ies), wherein the key corresponds to an attribute name; determining a node in which there is an attribute name variation based on a similarity of sub-nodes in the treelike relationship, and updating a corresponding record schema according to the determined result; CinP-encoding the record schema of the each entry of the set of entry(ies); parsing the encoded record schema in the tree structure into a path set, the path including the codes of all nodes which are traversed from a leaf node to a root node; putting into buckets according to the P-Code of a certain tier; in the buckets, determining a parent node in which there is an attribute name variation according to the similarity of the sub-nodes in the tier; updating a source P-Code of part of the determined parent node in which there is an attribute name variation to a target P-Code, and updating the C-Code code of a parent node corresponding to the updated parent node; and generating a schema for the NoSQL type database based on the updated record schema; wherein: the CinP-code of each node includes a code P-Code of the node itself and a code C-Code of the sub-nodes thereof; and the determination of a node in which there is an attribute name variation includes determining a node in which there is an attribute name variation based on a similarity of sub-nodes in the CinP-encoded record schema.