Data processing method, device and system

Data processing method, device and system

  • CN 105,117,308 B
  • Filed: 09/29/2015
  • Issued: 06/23/2020
  • Est. Priority Date: 09/29/2015
  • Status: Active Grant
First Claim
Patent Images

1. A data processing method, comprising:

  • acquiring a write operation instruction, writing target data into a memory database by the write operation instruction, and synchronously backing up the target data to a preset nonvolatile memory;

    when a preset condition is met, storing the target data recorded in the nonvolatile memory into a preset hard disk, and deleting the target data recorded in the nonvolatile memory;

    wherein the synchronously backing up the target data to a preset nonvolatile memory includes;

    when the memory database is initialized and started, initializing a main memory pool, reserving a data space, then initializing a log cache pool where the nonvolatile memory is located, mapping the address of the nonvolatile memory to a specified storage area in the memory, and after target data is written in a subsequent memory database, directly writing corresponding logs into the specified storage area and persisting the logs into the nonvolatile memory;

    wherein the synchronously backing up the target data to a preset nonvolatile memory includes;

    storing the target data in a form of record in an entry of the list of the nonvolatile memory;

    wherein the storing the target data recorded in the nonvolatile memory to a preset hard disk includes;

    determining a target table item to be scanned currently according to the sequence of the table items in the list;

    locking the target table entry;

    serializing the target data recorded in the target table entry to a preset hard disk;

    and releasing the lock of the target table entry.

View all claims
    ×
    ×

    Thank you for your feedback

    ×
    ×