The invention discloses a method and a
system for realizing
data consistency. A
data access assembly receives user messages, dynamic structured
query language (
SQL) is generated according to the user messages, an extensive makeup language (
XML)
database configuration file is connected with a relationship
database and obtains data, and then, the data is transmitted to an
application layer; an overall buffer
data set is inquired according to the overall property
data access assembly object name and the data obtaining object name, the data is returned to the
data access assembly when the data exists, and the data is transmitted to the
application layer by the data access assembly; and according to the data access assembly object name and the data obtaining object name, an overall buffer memory assembly is created when no data exists, and the obtained data dynamic
SQL, the data access assembly object name and the data obtaining object name are transmitted to the buffer memory assembly. The method and the
system solve the problem of
data consistency between a
server buffer memory and the relationship
database and have the advantages that the effectiveness of the
server buffer memory data is ensured, the connection access to the relationship database is reduced, the access speed is accelerated, and the access efficiency is improved.