This invention discloses a lightweight remote
data query method for low-bandwidth networks, belonging to the field of computer networks and data communication. Specifically, for scenarios where a
client requests a
contact list from a
server or queries contacts based on keywords, the
client obtains a
metadata index table supported by the
server. Then, the user inputs query conditions, generating a
JSON-formatted query
data structure. The
client defines a minimal query
instruction set, and through encoding mapping, converts the query
data structure into short
bytecode for simplification. The simplified
instruction set data is sent to the
server, which reverse-parses it back to the query
data structure and uses the restored query conditions to query actual contacts. The server converts the query results for actual contacts into a plain
data stream and returns it to the client. The user parses the plain
data stream using the
metadata index table to obtain the contact person and their phone number. This invention reduces the amount of data communicated between the client and server, thereby improving query efficiency.