Method and device for data processing

An embodiment of the invention provides a method and device for data processing and relates to the technical field of electronic information. The problem that when the data volume of data needing processing is large, database resources cannot be fully utilized and searching efficiency is poor is solved. Resource access of a database can be balanced, and working efficiency of a server is also improved. The method comprises the steps of enabling the server to be provided with a middle management layer and obtain operation instruction information; obtaining to-be-processed data through the middle management layer according to the operation instruction information; obtaining database information of the database where the to-be-processed data are located through the middle management layer; and executing operation matched with the operation instruction information in the corresponding database according to the database information. The method and device for data processing are applied to database data processing.