Data processing methods, apparatuses and devices
AssigneeZhejiang Koubei Network Technology Co., Ltd.
InventorsYu Yao, Dafeng Wang
Life of this patent
Estimating the term…
Abstract
This specification provides data processing methods, apparatuses and devices. In embodiments of the specification, table data includes a state identifier for indicating whether a target table is in a use state or an idle state. Therefore, after an occupying-table request is received, the table data can be obtained, and the state of the target table can be determined from the state identifier in the table data. If the target table is in the idle state, the table data is locked; after the state identifier is updated to the use state, the table data is released; and occupying-table data of the target table is generated to respond to the occupying-table request.
Claims17
A data processing method, comprising:
- obtaining, in response to that an occupying-table request for a target table is obtained, table data of the target table in a database stored on a server,
- wherein the table data is stored as a row of data in the database, and
- wherein the table data comprises a state identifier for indicating whether the target table is in a use state or an idle state;
- if the state identifier indicates that the target table is in the idle state,
- locking the table data to prevent others from accessing the table data,
- releasing, in response to that the state identifier is updated to the use state, the table data to allow others access the table data, and
- generating current occupying-table data of the target table to respond to the occupying-table request;
- if the state identifier indicates that the target table is in the use state,
- obtaining the current occupying-table data of the target table to respond to the occupying-table request.
A computer device, comprising:
- one or more memories, one or more processors and a computer program stored on the one or more memories and running on the one or more processors, wherein the one or more processors execute the computer program to perform:
- obtaining, in response to that an occupying request for a service resource is obtained, resource data of the service resource in a database stored on a server,
- wherein the resource data is stored as a row of data in the database, and
- wherein the resource data comprises a state identifier for indicating whether the service resource is in a use state or an idle state;
- if the state identifier indicates that the service resource is in the idle state,
- locking the resource data to prevent others from accessing the resource data,
- releasing, in response to that the state identifier is updated to the use state, the resource data to allow others access the resource data, and
- generating current occupying data of the service resource;
- if the state identifier indicates that the service resource is in the use state,
- obtaining the current occupying data of the service resource to respond to the occupying request.
A data processing method, comprising:
- obtaining, in response to that an occupying request for a service resource is obtained, resource data of the service resource in a database stored on a server,
- wherein the resource data is stored as a row of data in the database, and
- wherein the resource data comprises a state identifier for indicating whether the service resource is in a use state or an idle state;
- if the state identifier indicates that the service resource is in the idle state,
- locking the resource data to prevent others from accessing the resource data,
- releasing, in response to that the state identifier is updated to the use state, the resource data to allow others access the resource data, and
- generating current occupying data of the service resource;
- if the state identifier indicates that the service resource is in the use state,
- obtaining the current occupying data of the service resource to respond to the occupying request.
Dependencies are inferred from the claim text.