Data processing method and device
The invention provides a data processing method and device, and the method comprises the steps: receiving a reading request of to-be-queried data, wherein the reading request comprises a reading request serial number and a main key of the to-be-queried data; querying the primary key in a memory tabl...
Gespeichert in:
Hauptverfasser: | , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a data processing method and device, and the method comprises the steps: receiving a reading request of to-be-queried data, wherein the reading request comprises a reading request serial number and a main key of the to-be-queried data; querying the primary key in a memory table; when the primary key is not queried in the memory table and the read request serial number meetsa first preset condition, querying the primary key in a row cache; and under the condition that the primary key is queried in the row cache, determining and returning a key value corresponding to theprimary key. By setting the row cache, judging the relationship between the read request and the serial number range maintained by the storage engine, querying the value corresponding to the key of the to-be-queried data in the row cache, and returning the value as the query result, the query path is effectively shortened, and the query performance is greatly improved.
本说明书提供数据处理方法及装置,其中所述数据处理方法包括:接收待查询数据的读请求,其中,所述读请求包括读请求 |
---|