Unlock instant, AI-driven research and patent intelligence for your innovation.

A data query method and system

A data query and database technology, which is applied in the computer field to reduce operating pressure, improve user experience, and improve data query efficiency.

Active Publication Date: 2011-11-30
CHINA CONSTRUCTION BANK
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011]First of all, if only the data of a certain part of the page needs to be updated, after the client sends an http request, the database will query all the data related to this part on the page and By returning the response information of the http request from the server, the client will refresh the entire page, causing additional overhead for data query and wasting a lot of bandwidth;
[0012]Secondly, the client triggers an http request by clicking a button, then waits for the server to respond, clicks another button to trigger another http request, and then waits for the server to respond Response, such an iterative process, the client must wait for the response of the http request before proceeding to the next step, resulting in low operation efficiency;
[0013] Furthermore, if there are multiple parts on the page that need to update data, the database will perform query operations sequentially in the same time period, causing a large transient query to the database The pressure makes this method less practical for large batches of data queries

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A data query method and system
  • A data query method and system
  • A data query method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] Please refer to figure 2 As shown, a data query method in the embodiment of the present invention includes the following steps:

[0051] Step 201, the client triggers and creates an xmlhttp request object through a button or key operation.

[0052] Xmlhttp is a protocol for the client to communicate with the http server. The client can send requests to the http server through the xmlhttp request object. Taking the client as a browser as an example, the xmlhttp request object is implemented as an ActiveX object in IE, and other browsers (such as Firefox / Opera) implement the xmlhttp request object as a local javascript (a prototype method object-oriented scripting language) object.

[0053] Step 202, the client creates a client callback object.

[0054] The client callback refers to passing the corresponding data parameters to the server through the front-end client script, and then the server queries and processes the received parameters, and finally returns the resu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a data query method, which comprises the following steps: the client creates an xmlhttp request object and a callback object; the xmlhttp request object asynchronously sends the http request distributed by the client to the server; the server receives and processes all The http request, after interacting with the database, returns the operation result of the database to the xmlhttp request object; the callback object calls the operation result from the xmlhttp request object, sends the operation result to the client, and updates the client . The invention also discloses a data query system. By introducing an asynchronous communication mechanism, the present invention avoids the interaction between a large number of databases at the same time, reduces the overhead of the application system, lowers the operating pressure of the server side, reduces the access pressure of the database, and improves the efficiency of data query.

Description

technical field [0001] The invention relates to the field of computers, in particular to a data query method and system. Background technique [0002] The tree structure is a kind of nonlinear data structure, which is a set with a hierarchical relationship composed of a finite number of nodes, and there are branches between the nodes. In the query of a large amount of data, especially when the data is stored in a tree structure, the efficiency of the query is more concerned. [0003] Existing methods for querying data stored in a tree structure such as figure 1 As shown, it submits the page in units of forms. The process of this method is as follows: [0004] Step 101, the client sends an http (Hypertext Transfer Protocol) request to the server. [0005] The client can be specific software or a general browser, such as Internet Explorer, Firefox, Opera, etc. The client triggers an http request through a button or key operation and sends it to the server. [0006] Step...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30H04L29/06
Inventor 郑承满李鹏赵世辉刘浩董恒星王成名陈少静程大庆李镜忠涂锟斌
Owner CHINA CONSTRUCTION BANK