1. A method for generating a schema of a non-relational database, comprising: determining a relationship among keys in at least one entry of the non-relational database; grouping the keys into at least one group based on the determined relationship; and generating the schema of the non-relational database according to the at least one group.