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; and generating a schema for the NoSQL type database based on the updated record schema.