WO2017133538A1 - Method for realizing data query and server - Google Patents

Method for realizing data query and server Download PDF

Info

Publication number
WO2017133538A1
WO2017133538A1 PCT/CN2017/072178 CN2017072178W WO2017133538A1 WO 2017133538 A1 WO2017133538 A1 WO 2017133538A1 CN 2017072178 W CN2017072178 W CN 2017072178W WO 2017133538 A1 WO2017133538 A1 WO 2017133538A1
Authority
WO
WIPO (PCT)
Prior art keywords
query
data
statement
page
preset
Prior art date
Application number
PCT/CN2017/072178
Other languages
French (fr)
Chinese (zh)
Inventor
景小卫
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017133538A1 publication Critical patent/WO2017133538A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries
    • G06F16/24565Triggers; Constraints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24553Query execution of query operations

Definitions

  • the present disclosure relates to data processing techniques, for example, to a method and server for implementing data queries.
  • Telecom network management, power system monitoring, online stores, etc. often maintain a large amount of data, these maintained data are generally stored in the database system table; for example, telecommunications network management and power system monitoring need to maintain the system's daily performance, alarm information and other data
  • the online store needs to maintain a large amount of commodity information data, etc., and the amount of data maintained is usually huge.
  • the table used to store the data is called a large table; for example, a large table for storing daily performance data of the telecommunication network management, by network element, single Each test point in the board and the board generates one performance data every 15 minutes, and the daily performance data of the large-scale telecommunication network coupled with the large-scale telecommunication network for one month will reach an astonishing scale.
  • the user queries and browses the data stored in the large table through the client to obtain the desired content (interesting, valuable content).
  • the purpose of querying large tables is very broad and may involve a large amount of data.
  • the data is accessed in a large table in the following manner:
  • the first type according to the data query, the server obtains all the data satisfying the query command according to the query command, and then sends all the data to the client;
  • the server distributes the fixed number of fixed or fixed time query results to the client according to the query command.
  • the present disclosure provides a method and a server for implementing data query, which can avoid a large amount of feedback query data when accessing a large table.
  • the present disclosure provides a method of implementing data query, including:
  • the server After receiving the query instruction, the server generates a page query statement according to the query instruction;
  • the server executes each generated page query statement and returns corresponding query data according to each page query statement.
  • generating a paged query statement includes:
  • the query size is a product of the number of query windows and the amount of data displayed by the query window;
  • the query record includes: the number of query windows, the query duration, the transmission duration of the query data, and the insertion duration of the query data when the page break query statement is executed in one-to-one correspondence with each page query statement.
  • the subsequent paged query statement generated according to the query record of the previous paged query statement includes:
  • the query size is not adjusted
  • the query size of the subsequent pagination query statement is adjusted according to the query record, and the next subsequent pagination query statement is generated according to the adjusted query size.
  • the method before the generating the subsequent paging query according to the query duration of the preceding paging query, the method further includes:
  • the query timing is respectively performed on each of the paging query statements to obtain the query duration of the previous paging query statement.
  • the method further includes:
  • the query failure information includes a query failure reason and/or a preset query failure code.
  • the method further includes:
  • the last packet data insertion process is performed in the query window of the browse query data: if it is not the last packet data of the last page query statement, the query data is browsed.
  • the query window performs the insertion processing of the intermediate data.
  • the method further includes:
  • the display of the query data of the current page query query is continued; if the current number of query windows for displaying the query data reaches the preset trigger threshold , then execute the next post-page query statement.
  • the method further includes:
  • the method further includes:
  • an embodiment of the present disclosure further provides a server for implementing data query, including: a generating unit and a returning unit; wherein
  • the generating unit is configured to generate a paging query statement according to the query instruction after receiving the query instruction;
  • the return unit is configured to execute each generated page query statement and return corresponding query data according to each page query statement.
  • the generating unit is configured to
  • the query size is a product of the number of query windows and the amount of data displayed by the query window;
  • the query record includes: the number of query windows, the query duration, the transmission duration of the query data, and the insertion duration of the query data when the page break query statement is executed in one-to-one correspondence with each page query statement.
  • the generating unit is configured to
  • the query size is not adjusted
  • the query size of the next page query query is adjusted according to the query time, and the next subsequent page query statement is generated according to the adjusted query size.
  • the server further includes a timing unit configured to generate the subsequent paging query according to the query duration of the preceding paging query.
  • the query timing is respectively performed on each of the paging query statements to obtain the query duration of the previous paging query statement.
  • the server further includes a query feedback unit, configured to feed back the query failure information when the query of the page query query fails;
  • the query failure information includes a query failure reason and/or a preset query failure code.
  • the server further includes a packet processing unit configured to determine whether the returned query data is the last packet data of the last page query statement;
  • the last packet data insertion process is performed in the query window of the browse query data: if it is not the last packet data of the last page query statement, the query data is browsed.
  • the query window performs the insertion processing of the intermediate data.
  • the server further includes a page turning processing unit:
  • the display of the query data of the current page query query is continued; if the current number of query windows for displaying the query data reaches the preset trigger threshold , then execute the next post-page query statement.
  • the server further includes a stopping unit configured to stop executing the paging query statement when the query window is not detected to be turned over or the operation of closing the query window is received.
  • a stopping unit configured to stop executing the paging query statement when the query window is not detected to be turned over or the operation of closing the query window is received.
  • the server further includes a triggering unit configured to count the display time of the previous preset number of query windows;
  • Embodiments of the present disclosure also provide a non-transitory computer readable storage medium storing computer executable instructions arranged to perform the above method.
  • An embodiment of the present disclosure further provides an electronic device, including:
  • At least one processor At least one processor
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the method described above.
  • the technical solution of the present disclosure includes: after receiving the query instruction, the server generates a page query statement according to the query instruction; the server executes each generated page query statement, and returns corresponding query data according to each page query statement.
  • the paging query by the paging query generated by the query instruction reduces the feedback amount of the query data when the large table data is accessed, thereby avoiding waste of network communication and server resources, and improving the user experience.
  • FIG. 1 is a flowchart of a method for implementing data query according to an embodiment of the present disclosure
  • FIG. 2 is a structural block diagram of a server for implementing data query according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • FIG. 1 is a flowchart of a method for implementing data query according to an embodiment of the present disclosure. As shown in FIG. 1 , the method includes:
  • Step 100 After receiving the query instruction, the server generates a page query statement according to the query instruction.
  • generating a paged query statement includes:
  • the subsequent paging query statement is generated according to the query record of the previous paging query statement;
  • the query size is the product of the number of query windows and the amount of data displayed by the query window; here, the amount of data displayed by the query window can be understood as the size of the query window;
  • the query record includes: the number of query windows when executing each page query statement in one-to-one correspondence with each page query statement, the query duration, the transmission time of the query data, and the insertion time of the query data.
  • Each paged query statement contains a one-to-one correspondence record.
  • the subsequent paged query statement generated according to the query record of the previous paged query statement includes:
  • the query size is not adjusted
  • the preset interval of the embodiment of the present disclosure may be (0.8, 1.05).
  • the preset interval may be an empirical value of those skilled in the art, so that the browsing of the query data can be smoothly performed as a standard, and the feedback time of the slowest query data that can be accepted is used as the bottom line.
  • the query size of the next post-page query statement is not adjusted
  • the query size of the next page query query is adjusted according to the query record.
  • the application query duration can be recorded by the server; the client timer can be used to record the start time of the page query query to the time when the query data is inserted into the query window, and the start time of the page query is executed. The length of time that the query data is inserted into the query window minus the length of the query to get the query data.
  • the query duration, the transmission duration of the query data, and the insertion duration of the query data can be stored in a queue manner.
  • the query duration is T2
  • the target response time can be set to be the same as the preset response threshold value, or can be adjusted according to the actual query data feedback speed requirement.
  • the query size of the subsequent pagination query can be calculated on the client.
  • the server sends the recorded query duration to the client, and the client combines the transmission duration of the query data recorded by the client and the insertion of the query data.
  • the duration is calculated by using the first fitting function, the second fitting function and the target response time to obtain the query size of the subsequent pagination query statement;
  • the query size of the subsequent pagination query statement can be calculated on the server side, for example,
  • the client sends the recorded transmission time of the query data and the insertion time of the query data to the server, and the server combines the first fitting function, the second fitting function and the target response time to obtain the latter one. Minute
  • Minute The query size of the page query statement;
  • the ease factor when the query size of the subsequent page query statement is adjusted according to the query record, if the query size is too large, the ease factor is theoretically larger than the maximum value of the preset interval, and the subsequent page is reduced.
  • the number of query windows of the query statement can speed up the feedback of the query data, and the ease of use coefficient is theoretically reduced; if the query size is too small, the ease factor is theoretically smaller than the minimum value of the preset interval, by adding a subsequent page query.
  • the number of query windows of the statement can increase the amount of data of the query data; enable the user to obtain enough information when executing a paged query statement; that is, when the ease factor is greater than the maximum value of the preset interval, the query is reduced in the next page.
  • the reduction and increase of the number of query windows can be calculated by referring to the fitting function, or can be adjusted according to a preset step size or an adjustment function.
  • Step 101 The server executes each generated page query statement, and returns corresponding query data according to each page query statement.
  • the method of the embodiment of the present disclosure further includes: before the generating the subsequent paging query statement according to the query duration of the preceding paging query.
  • the query timing of each paging query statement is separately obtained to obtain the query duration of the previous paging query statement.
  • the method of the embodiment of the disclosure further includes:
  • the query failure information includes the reason for the query failure and/or a preset query failure code.
  • the method of the embodiment of the disclosure further includes:
  • the last packet data insertion process is performed in the query window of the browse query data: if it is not the last packet data of the last page query statement, the query data is browsed.
  • the query window performs the insertion processing of the intermediate data.
  • the method of the embodiment of the disclosure further includes:
  • the trigger threshold can be set to be fixed.
  • the number for example, is set to 1/3 of the number of query windows up or down;
  • the display of the query data of the current page query query is continued; if the current number of query windows for displaying the query data reaches the preset trigger threshold , then execute the next post-page query statement.
  • the method of the embodiment of the disclosure further includes:
  • the method of the embodiment of the disclosure further includes:
  • the processing of the foregoing method in the embodiment of the present disclosure may be implemented by a central processing unit; the execution content involved in the embodiment method may be added to the central processing unit after generating a corresponding execution instruction.
  • the paging query statement reduces the feedback amount of the query data when the large table data is accessed, thereby avoiding waste of network communication and server resources, and improving the user experience.
  • FIG. 2 is a structural block diagram of a server for implementing data query according to an embodiment of the present disclosure. As shown in FIG. 2, the method includes: a generating unit and a returning unit;
  • the generating unit is configured to generate a paging query statement according to the query instruction after receiving the query instruction;
  • the return unit is configured to execute each generated page query statement and return corresponding query data according to each page query statement.
  • the generating unit is configured to
  • the subsequent paging query statement is generated according to the query record of the previous paging query statement;
  • the query size is the product of the number of query windows and the amount of data displayed in the query window
  • the query record includes: the number of query windows when executing each page query statement in one-to-one correspondence with each page query statement, the query duration, the transmission time of the query data, and the insertion time of the query data.
  • the generating unit is configured to
  • the query size is not adjusted
  • the query size of the subsequent pagination query statement is adjusted according to the query record, and the next subsequent pagination query statement is generated according to the adjusted query size.
  • the embodiment of the present disclosure further includes a timing unit configured to generate a subsequent paging query according to a query duration of the preceding paging query.
  • the query timing of each paging query statement is separately obtained to obtain the query duration of the previous paging query statement.
  • the server of the disclosure further includes a query feedback unit configured to feed back the query failure information when the query of the page query query fails.
  • the query failure information includes the reason for the query failure and/or a preset query failure code.
  • the embodiment of the present disclosure further includes a packet processing unit configured to determine whether the returned query data is the last packet data of the last page query statement;
  • the inquiry window performs the insertion processing of the last packet data: if it is not the last packet data of the last page query statement, the interpolation processing of the intermediate data is performed in the query window of the browse query data.
  • the server of the disclosure further includes a page turning processing unit:
  • the display of the query data of the current page query query is continued; if the current number of query windows for displaying the query data reaches the preset trigger threshold , then execute the next post-page query statement.
  • the embodiment of the present disclosure further includes a stopping unit configured to stop executing the paging query statement when the query window is not detected to be turned over or the operation of closing the query window is received.
  • the server of the disclosed embodiment further includes a triggering unit configured to count a display time of the previous preset number of query windows;
  • the application example system includes a client and a server, and the client is deployed in a data access interface of the application system.
  • FIG. 3 is a flowchart of a method for applying the example of the present disclosure. As shown in FIG. 3, the method includes:
  • Step 300 The server starts a query thread for data access
  • the application data query thread of the present disclosure may also be established when the user opens the browsing window, which is a conventional technical means by those skilled in the art, and details are not described herein again.
  • the query thread refers to the query thread that accesses the large table data.
  • Step 301 The client receives a user instruction to determine a data range of the access data, and sends a query instruction to the server.
  • This step triggers the client to enter the data browsing process, and may include the following processing: by determining the data range, the client enters the query state, that is, the client query end state is false; sending the query command to Server, the server enters the query state.
  • the query instruction sent by the application example to the server may include: a conditional query statement, a browse window page size, and a query window number; wherein, the initial value of the query window number may adopt a preset value, for example, the preset value may be set to be determined by statistical analysis.
  • the average number of access pages, for example, the initial value of the number of query windows is 5.
  • Step 302 After receiving the query instruction, the server generates a page query statement according to the query instruction.
  • generating a paged query statement includes:
  • the subsequent paging query statement is generated according to the query record of the previous paging query statement;
  • the query size is the product of the number of query windows and the amount of data displayed in the query window
  • the query record includes: the number of query windows when executing each page query statement in one-to-one correspondence with each page query statement, the query duration, the transmission time of the query data, and the insertion time of the query data.
  • the query size of each generated paging query statement may be the same; for example, the number of query windows in the query size is set to a fixed value of 5-7. Value, at this time, according to the query instruction, all the paged query statements that meet the requirements are generated.
  • the query size can be saved as a fixed parameter.
  • the subsequent paged query statement generated according to the query record of the previous paged query statement includes:
  • the response threshold may be determined based on industry standards, customer requirements, or technician design indicators.
  • the response threshold mainly refers to the response duration of the paged query statement; in general, when the large table data is queried, the small operation response time is in the second level, for example, 3 to 5 seconds, the response threshold can be set to 3 to 5 seconds. If the response threshold is set too large, the user will be affected by the data query experience if the preset interval is unchanged.
  • the preset interval of this application example may be (0.8, 1.05).
  • the preset interval may be an empirical value of those skilled in the art, so that the browsing of the query data can be smoothly performed as a standard, and the feedback time of the slowest query data that can be accepted is used as the bottom line.
  • the query size is not adjusted; here, the query size is not adjusted: the post query statement is generated according to the query size of the previous pagination query;
  • the preset value can be set to an integer greater than or equal to 2.
  • the query record includes: the number of query windows and the query response time in one-to-one correspondence with each page query statement when executing each page query statement; wherein the query response time includes: the query duration, the transmission time of the query data, and the insertion time of the query data. ;
  • This application example query duration is recorded by the server; this application example can also record the start time of executing the paged query statement through the client timer to the time when the query data is inserted into the query window, and the start time of the paged query statement to the query data insertion.
  • the length of the query window is subtracted from the query window time to get the length of the query data.
  • the adjustment record can be processed in the server by means of a queue.
  • the query size of the subsequent page query statement is adjusted according to the query record.
  • Content can obtain c and d in the second fitting function; set the target response time, and calculate the target response time equal to (a*w+c)+(b*w+d) to obtain a subsequent paged query statement.
  • the value of the number of query windows w if the value obtained by the calculation is not an integer, it can be rounded up or down.
  • the target response time can be set to be the same as the preset response threshold value, or can be adjusted according to the actual query data feedback speed requirement.
  • the query size of the next paged query statement can be calculated on the client side.
  • the server sends the recorded query duration to the client, and the client combines the record length of the query data recorded by the client and the query data.
  • the insertion duration is calculated by using the first fitting function, the second fitting function and the target response time to obtain the query size of the subsequent pagination query statement;
  • the query size of the subsequent pagination query statement can be calculated on the server side, for example,
  • the client sends the record transmission time of the query data and the insertion time of the query data to the server, and the server combines the first fitting function, the second fitting function and the target response time to obtain the subsequent query time.
  • the ease factor exceeds the preset interval, where the value of the ease factor is less than the minimum value of the preset interval and the value of the ease factor is greater than the maximum value of the preset interval; the value of the ease factor is less than the minimum of the preset interval
  • the application example obtains the first fitting function and the second fitting function according to the query record fitting, and the number of query windows of the next post-page query statement can be calculated by setting the target response time to be larger than the previous pagination query.
  • the number of query windows of the statement when the value of the easy-to-use coefficient is greater than the maximum value of the preset interval, the application example obtains the first fitting function and the second fitting function according to the query record fitting, and can be calculated by setting the target response time.
  • the number of query windows for obtaining the next post-page query statement is smaller than the number of query windows for the previous page query statement; by adjusting, the query data fed back by each page query statement is integrated in the data amount and the feedback rate, thereby improving the user in the large table.
  • the experience of using data queries is smaller than the number of query windows for the previous page query statement; by adjusting, the query data fed back by each page query statement is integrated in the data amount and the feedback rate, thereby improving the user in the large table.
  • the default paging value may be used as the query size of the first paging query, and the query size is equal to the number of query windows.
  • the client window displays the product of the amount of data; the initial value of the general query window can be 5 to 7, and the value can be adjusted according to the query data return speed and the user experience when the page query statement is executed.
  • the example method of the present disclosure further includes: performing query timing on each page query statement to obtain a query duration of the previous page query statement.
  • the application query timing of the present disclosure can be performed by a timer, and the query duration can be obtained by recording the query start time and end time of each page query query. If it is a continuous query, the end of the previous page query statement The time is the starting time of the current paging query statement; if the paging query statement is a non-contiguous query, the query duration can be obtained by reading the system time from the beginning to the end of the paging query.
  • Step 303 The server executes each generated page query statement, and returns corresponding query data according to each page query statement.
  • the general starting time and the query size are pushed into the query stack.
  • the execution of the paging query is completed, the paging query in the query stack is cleared.
  • the execution of the query instruction according to the existing connection access needs to access the database or the large table, for example, through the database large table access interface to establish a connection with the database; access to the database or the contents of the large table in the database is a person skilled in the art The usual technical means will not be repeated here.
  • the application examples of the disclosure also include:
  • the query failure information may be a query failure reason, and/or a preset query failure code.
  • the application example of the present disclosure further includes determining whether the returned query data is the last packetized data of the last paged query statement:
  • the last packetized data insertion process is performed in the query window of the browse query data: optional,
  • the extracted data For each piece of data of the extracted sub-package data, determine whether it is the query data of the page-by-page query statement. If it is the query data of the page-by-page query statement, the extracted data is inserted into the client access window for display until the packet data is paginated. When the last data of the query data of the query is queried, the data insertion is completed;
  • the insertion state is true; when the insertion is stopped, the insertion state is false, the query end is true, and the page query statement ends.
  • the interpolation process of the intermediate data is performed in the query window of the browse query data.
  • each piece of data of the extracted packet data may be inserted into the client access window one by one; when the data is inserted, the out-of-boundary insertion state is false; the application example of the present application queries the paged query statement.
  • the query duration of the paged query statement is cut off.
  • the application example method further includes: when detecting the page of the query window for browsing the query data, determining whether the number of the query windows of the currently remaining display query data reaches a preset triggering threshold;
  • the display of the query data of the current page query query is continued; if the current number of query windows for displaying the query data reaches the preset trigger threshold , then execute the next post-page query statement.
  • This application example method also includes:
  • the application examples of the disclosure also include:
  • the preset number is set according to the actual usage, for example, two or three.
  • Step 304 End the data query according to the query instruction end information; here, when the query is ended, the query size, the query duration timer, etc. will be cleared, disconnected or kept connected with the database, ended or retained, and the query thread is set according to the actual situation.
  • Embodiments of the present disclosure also provide a non-transitory computer readable storage medium storing computer executable instructions arranged to perform the method of any of the above embodiments.
  • the embodiment of the present disclosure further provides a schematic structural diagram of an electronic device.
  • the electronic device includes:
  • At least one processor 40 which is exemplified by a processor 40 in FIG. 4; and a memory 41, may further include a communication interface 42 and a bus 43.
  • the processor 40, the communication interface 42, and the memory 41 can complete communication with each other through the bus 43.
  • Communication interface 42 can be used for information transmission.
  • Processor 40 may invoke logic instructions in memory 41 to perform the methods of the above-described embodiments.
  • logic instructions in the memory 41 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
  • the memory 41 is used as a computer readable storage medium for storing software programs, computer executable programs, and program instructions/modules corresponding to the methods in the embodiments of the present disclosure.
  • the processor 40 executes the function application and the data processing by executing the software program, the instruction and the module stored in the memory 41, that is, the method for implementing the data query in the above method embodiment.
  • the memory 41 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; and the storage data area may be stored according to the use of the terminal device The data created, etc. Further, the memory 41 may include a high speed random access memory, and may also include a nonvolatile memory.
  • the technical solution of the embodiments of the present disclosure may be embodied in the form of a software product stored in a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, or a network) The device or the like) performs all or part of the steps of the method described in the embodiments of the present disclosure.
  • the foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like.
  • the method and server for implementing data query provided by the present disclosure reduce the feedback amount of query data when performing large table data access, avoiding waste of network communication and server resources, and improving the user experience.

Abstract

Provided are a method for realizing a data query and a server. The method comprises: after receiving a query instruction, a server generates pagination query statements according to the query instruction (100); and the server executes the generated pagination query statements, and returns, according to the respective pagination query statements, corresponding query data (101). The invention performs a pagination query by means of pagination query statements generated according to a query instruction, thereby reducing an amount of query data fed back after accessing big table data, preventing waste of resources associated with network communication and a server, and improving user experience.

Description

一种实现数据查询的方法和服务器Method and server for realizing data query 技术领域Technical field
本公开涉及数据处理技术,例如涉及一种实现数据查询的方法和服务器。The present disclosure relates to data processing techniques, for example, to a method and server for implementing data queries.
背景技术Background technique
电信的网络管理、电力系统监控、网上商店等经常要维持大量数据,这些维持的数据一般存储在数据库系统的表中;例如电信网络管理和电力系统监控需要维持系统的日常性能、告警信息等数据,网上商店需要维持大量商品信息数据等,维持的数据通常数量巨大,存储这些数据所使用的表被称之为大表;比如、存放电信网络管理日常性能数据的大表,按网元、单板、单板中各种检测点每15分钟产生一条性能数据,耦合大型电信网络1个月通过大表存储的日常性能数据将达到惊人的规模。用户通过客户端对存储在大表中的数据进行查询与浏览,以获得所需的内容(感兴趣的、有价值的内容)。用户查询大表的目的非常宽泛,可能涉及大量的数据。Telecom network management, power system monitoring, online stores, etc. often maintain a large amount of data, these maintained data are generally stored in the database system table; for example, telecommunications network management and power system monitoring need to maintain the system's daily performance, alarm information and other data The online store needs to maintain a large amount of commodity information data, etc., and the amount of data maintained is usually huge. The table used to store the data is called a large table; for example, a large table for storing daily performance data of the telecommunication network management, by network element, single Each test point in the board and the board generates one performance data every 15 minutes, and the daily performance data of the large-scale telecommunication network coupled with the large-scale telecommunication network for one month will reach an astonishing scale. The user queries and browses the data stored in the large table through the client to obtain the desired content (interesting, valuable content). The purpose of querying large tables is very broad and may involve a large amount of data.
目前,主要采用以下方式在大表中进行数据的访问:第一种、根据进行数据查询时,服务器根据查询命令获取满足查询命令的所有数据后,将所有数据发送至客户端;第二种、服务器根据查询命令将固定条数或固定时间的查询结果分批发送给客户端。At present, the data is accessed in a large table in the following manner: The first type, according to the data query, the server obtains all the data satisfying the query command according to the query command, and then sends all the data to the client; The server distributes the fixed number of fixed or fixed time query results to the client according to the query command.
采用上述两种方法进行大表中数据的访问时,无论用户看或不看,大量查询数据都将源源不断的发给客户,造成网络通讯和服务器资源的浪费,同时造成客户端响应速度下降,影响用户使用体验。When the above two methods are used to access data in a large table, a large amount of query data will be continuously sent to the client regardless of whether the user views or does not look at it, causing waste of network communication and server resources, and causing a decrease in response speed of the client. Affect the user experience.
发明内容Summary of the invention
为了解决上述技术问题,本公开提供一种实现数据查询的方法及服务器,能够避免访问大表时,大量的反馈查询数据。In order to solve the above technical problem, the present disclosure provides a method and a server for implementing data query, which can avoid a large amount of feedback query data when accessing a large table.
本公开提供了一种实现数据查询的方法,包括:The present disclosure provides a method of implementing data query, including:
服务器接收查询指令后,根据查询指令生成分页查询语句; After receiving the query instruction, the server generates a page query statement according to the query instruction;
服务器执行生成的各分页查询语句,根据各分页查询语句返回相应的查询数据。The server executes each generated page query statement and returns corresponding query data according to each page query statement.
可选的,生成分页查询语句包括:Optionally, generating a paged query statement includes:
根据所述查询指令按照固定的查询规模生成所述分页查询语句;或,Generating the paged query statement according to the fixed query size according to the query instruction; or
按照固定的查询规模生成第一个所述分页查询语句后,根据在前的分页查询语句的查询记录生成在后的分页查询语句;After generating the first paging query according to the fixed query size, generating a subsequent paging query according to the query record of the preceding paging query;
所述查询规模为查询窗口数与查询窗口显示数据量的乘积;The query size is a product of the number of query windows and the amount of data displayed by the query window;
所述查询记录包括:与各分页查询语句成一一对应的执行各分页查询语句时的查询窗口数、查询时长、查询数据的传送时长、查询数据的插入时长。The query record includes: the number of query windows, the query duration, the transmission duration of the query data, and the insertion duration of the query data when the page break query statement is executed in one-to-one correspondence with each page query statement.
可选的,根据在前的分页查询语句的查询记录生成在后的分页查询语句包括:Optionally, the subsequent paged query statement generated according to the query record of the previous paged query statement includes:
计算在前的一个分页查询语句的所述查询时长与预设的响应阈值相除的商,作为易用系数;Calculating a quotient of the query duration of a preceding page query statement divided by a preset response threshold as an ease factor;
如果易用系数在预设区间,则不调整查询规模;If the ease factor is in the preset interval, the query size is not adjusted;
如果易用系数超出预设区间,当查询记录的条数小于预设数值时,不调整下一在后分页查询语句的查询规模,生成下一在后的分页查询语句;If the ease factor exceeds the preset interval, when the number of the query records is less than the preset value, the query size of the next post-page query statement is not adjusted, and the next subsequent page query statement is generated;
如果易用系数超出预设区间,当查询记录的条数大于预设数值时,根据查询记录调整在后的一个分页查询语句的查询规模,根据调整的查询规模生成下一在后的分页查询语句。If the easiness factor exceeds the preset interval, when the number of the query records is greater than the preset value, the query size of the subsequent pagination query statement is adjusted according to the query record, and the next subsequent pagination query statement is generated according to the adjusted query size. .
可选的,根据在前的分页查询语句的查询时长生成在后的分页查询语句之前,该方法还包括:Optionally, before the generating the subsequent paging query according to the query duration of the preceding paging query, the method further includes:
对各所述分页查询语句分别进行查询计时,以获得在前的分页查询语句的所述查询时长。The query timing is respectively performed on each of the paging query statements to obtain the query duration of the previous paging query statement.
可选的,该方法还包括:Optionally, the method further includes:
所述分页查询语句查询失败时,反馈查询失败信息;When the query of the page query query fails, the query failure information is fed back;
所述查询失败信息包括查询失败原因和/或预先设定的查询失败编码。The query failure information includes a query failure reason and/or a preset query failure code.
可选的,该方法还包括: Optionally, the method further includes:
确定返回的所述查询数据是否是最后一个分页查询语句的最后一个分包数据;Determining whether the returned query data is the last packet data of the last page query statement;
如果是最后一个分页查询语句的最后一个分包数据,在浏览查询数据的查询窗口执行最后一个分包数据的插入处理:如果不是最后一个分页查询语句的最后一个分包数据,在浏览查询数据的查询窗口执行中间数据的插入处理。If it is the last packet data of the last paged query statement, the last packet data insertion process is performed in the query window of the browse query data: if it is not the last packet data of the last page query statement, the query data is browsed. The query window performs the insertion processing of the intermediate data.
可选的,该方法还包括:Optionally, the method further includes:
检测到浏览查询数据的查询窗口翻页时,确定当前剩余的显示查询数据的查询窗口数是否达到预设的触发在后阈值;When the query window of the browse query data is detected, it is determined whether the number of query windows of the currently remaining display query data reaches a preset trigger threshold;
如果当前剩余的显示查询数据的查询窗口数未达到预设的触发在后阈值,继续当前分页查询语句查询数据的显示;如果当前剩余的显示查询数据的查询窗口数达到预设的触发在后阈值,则执行下一在后的分页查询语句。If the current number of query windows displaying the query data does not reach the preset trigger threshold, the display of the query data of the current page query query is continued; if the current number of query windows for displaying the query data reaches the preset trigger threshold , then execute the next post-page query statement.
可选的,该方法还包括:Optionally, the method further includes:
当未检测到查询窗口翻页或接收到关闭查询窗口的操作时,停止执行分页查询语句。When the query window is not detected or the operation of closing the query window is received, the execution of the paging query is stopped.
可选的,该方法还包括:Optionally, the method further includes:
统计在前的预设个数的查询窗口的显示时间;Counting the display time of the previous preset number of query windows;
根据查询窗口的平均显示时长确定剩余查询窗口的显示时长;Determining the display duration of the remaining query windows according to the average display duration of the query window;
当剩余查询窗口的显示时长达到预设的触发阈值时,执行在后的分页查询语句。When the display duration of the remaining query window reaches the preset trigger threshold, the subsequent paged query statement is executed.
另一方面,本公开实施例还提出一种实现数据查询的服务器,包括:生成单元和返回单元;其中,On the other hand, an embodiment of the present disclosure further provides a server for implementing data query, including: a generating unit and a returning unit; wherein
生成单元被配置为,接收查询指令后,根据查询指令生成分页查询语句;The generating unit is configured to generate a paging query statement according to the query instruction after receiving the query instruction;
返回单元被配置为,执行生成的各分页查询语句,根据各分页查询语句返回相应的查询数据。The return unit is configured to execute each generated page query statement and return corresponding query data according to each page query statement.
可选的,生成单元被配置为,Optionally, the generating unit is configured to
接收所述查询指令后,After receiving the query instruction,
根据所述查询指令按照固定的查询规模生成所述分页查询语句;或, Generating the paged query statement according to the fixed query size according to the query instruction; or
按照固定的查询规模生成第一个所述分页查询语句后,根据在前的分页查询语句的查询记录生成在后的分页查询语句;After generating the first paging query according to the fixed query size, generating a subsequent paging query according to the query record of the preceding paging query;
所述查询规模为查询窗口数与查询窗口显示数据量的乘积;The query size is a product of the number of query windows and the amount of data displayed by the query window;
所述查询记录包括:与各分页查询语句成一一对应的执行各分页查询语句时的查询窗口数、查询时长、查询数据的传送时长、查询数据的插入时长。The query record includes: the number of query windows, the query duration, the transmission duration of the query data, and the insertion duration of the query data when the page break query statement is executed in one-to-one correspondence with each page query statement.
可选的,生成单元被配置为,Optionally, the generating unit is configured to
接收所述查询指令后,After receiving the query instruction,
根据所述查询指令按照固定的查询规模生成所述分页查询语句;或,Generating the paged query statement according to the fixed query size according to the query instruction; or
计算在前的一个分页查询语句的所述查询时长与预设的响应阈值相除的商,作为易用系数;Calculating a quotient of the query duration of a preceding page query statement divided by a preset response threshold as an ease factor;
如果易用系数在预设区间,则不调整查询规模;If the ease factor is in the preset interval, the query size is not adjusted;
如果易用系数超出预设区间,当查询记录的条数小于预设数值时,不调整下一在后分页查询语句的查询规模,生成下一在后的分页查询语句;If the ease factor exceeds the preset interval, when the number of the query records is less than the preset value, the query size of the next post-page query statement is not adjusted, and the next subsequent page query statement is generated;
如果易用系数超出预设区间,当查询记录的条数大于预设数值时,根据查询时间调整在后的一个分页查询语句的查询规模,根据调整的查询规模生成下一在后的分页查询语句。If the ease factor exceeds the preset interval, when the number of query records is greater than the preset value, the query size of the next page query query is adjusted according to the query time, and the next subsequent page query statement is generated according to the adjusted query size. .
可选的,该服务器还包括计时单元,被配置为所述根据在前的分页查询语句的查询时长生成在后的分页查询语句之前,Optionally, the server further includes a timing unit configured to generate the subsequent paging query according to the query duration of the preceding paging query.
对各所述分页查询语句分别进行查询计时,以获得在前的分页查询语句的所述查询时长。The query timing is respectively performed on each of the paging query statements to obtain the query duration of the previous paging query statement.
可选的,该服务器还包括查询反馈单元,被配置为所述分页查询语句查询失败时,反馈查询失败信息;Optionally, the server further includes a query feedback unit, configured to feed back the query failure information when the query of the page query query fails;
所述查询失败信息包括查询失败原因和/或预先设定的查询失败编码。The query failure information includes a query failure reason and/or a preset query failure code.
可选的,该服务器还包括分包处理单元,被配置为确定返回的所述查询数据是否是最后一个分页查询语句的最后一个分包数据;Optionally, the server further includes a packet processing unit configured to determine whether the returned query data is the last packet data of the last page query statement;
如果是最后一个分页查询语句的最后一个分包数据,在浏览查询数据的查询窗口执行最后一个分包数据的插入处理:如果不是最后一个分页查询语句的最后一个分包数据,在浏览查询数据的查询窗口执行中间数据的插入处理。 If it is the last packet data of the last paged query statement, the last packet data insertion process is performed in the query window of the browse query data: if it is not the last packet data of the last page query statement, the query data is browsed. The query window performs the insertion processing of the intermediate data.
可选的,该服务器还包括翻页处理单元:Optionally, the server further includes a page turning processing unit:
检测到浏览查询数据的查询窗口翻页时,确定当前剩余的显示查询数据的查询窗口数是否达到预设的触发在后阈值;When the query window of the browse query data is detected, it is determined whether the number of query windows of the currently remaining display query data reaches a preset trigger threshold;
如果当前剩余的显示查询数据的查询窗口数未达到预设的触发在后阈值,继续当前分页查询语句查询数据的显示;如果当前剩余的显示查询数据的查询窗口数达到预设的触发在后阈值,则执行下一在后的分页查询语句。If the current number of query windows displaying the query data does not reach the preset trigger threshold, the display of the query data of the current page query query is continued; if the current number of query windows for displaying the query data reaches the preset trigger threshold , then execute the next post-page query statement.
可选的,该服务器还包括停止单元,被配置为未检测到查询窗口翻页或接收到关闭查询窗口的操作时,停止执行分页查询语句。Optionally, the server further includes a stopping unit configured to stop executing the paging query statement when the query window is not detected to be turned over or the operation of closing the query window is received.
可选的,该服务器还包括触发单元,被配置为统计在前的预设个数的查询窗口的显示时间;Optionally, the server further includes a triggering unit configured to count the display time of the previous preset number of query windows;
根据查询窗口的平均显示时长确定剩余查询窗口的显示时长;Determining the display duration of the remaining query windows according to the average display duration of the query window;
当剩余查询窗口的显示时长达到预设的触发阈值时,执行在后的分页查询语句。When the display duration of the remaining query window reaches the preset trigger threshold, the subsequent paged query statement is executed.
本公开实施例还提供了一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述方法。Embodiments of the present disclosure also provide a non-transitory computer readable storage medium storing computer executable instructions arranged to perform the above method.
本公开实施例还提供了一种电子设备,包括:An embodiment of the present disclosure further provides an electronic device, including:
至少一个处理器;以及At least one processor;
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行上述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the method described above.
与相关技术相比,本公开技术方案包括:服务器接收查询指令后,根据查询指令生成分页查询语句;服务器执行生成的各分页查询语句,根据各分页查询语句返回相应的查询数据。本公开实施例方法,通过根据查询指令生成的分页查询语句进行分页查询降低了进行大表数据访问时查询数据的反馈量,避免了网络通讯和服务器资源的浪费,提升了用户使用体验。Compared with the related art, the technical solution of the present disclosure includes: after receiving the query instruction, the server generates a page query statement according to the query instruction; the server executes each generated page query statement, and returns corresponding query data according to each page query statement. In the method of the embodiment of the present disclosure, the paging query by the paging query generated by the query instruction reduces the feedback amount of the query data when the large table data is accessed, thereby avoiding waste of network communication and server resources, and improving the user experience.
附图概述 BRIEF abstract
此处所说明的附图用来提供对本公开的理解,构成本公开的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:The drawings described herein are intended to provide an understanding of the present disclosure, and are intended to be a part of this disclosure. In the drawing:
图1为本公开实施例实现数据查询的方法的流程图;1 is a flowchart of a method for implementing data query according to an embodiment of the present disclosure;
图2为本公开实施例实现数据查询的服务器的结构框图;2 is a structural block diagram of a server for implementing data query according to an embodiment of the present disclosure;
图3为本公开应用示例的方法流程图;以及3 is a flowchart of a method of an application example of the present disclosure;
图4是本公开实施例提供的电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
具体实施方式detailed description
为使本公开的技术方案和优点更加清楚明白,下文中将结合附图对本公开的实施例进行详细说明。需要说明的是,在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互任意组合。In order to make the technical solutions and advantages of the present disclosure more apparent, the embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments in the present disclosure and the features in the embodiments may be arbitrarily combined with each other without conflict.
图1为本公开实施例实现数据查询的方法的流程图,如图1所示,包括:FIG. 1 is a flowchart of a method for implementing data query according to an embodiment of the present disclosure. As shown in FIG. 1 , the method includes:
步骤100、服务器接收查询指令后,根据查询指令生成分页查询语句;Step 100: After receiving the query instruction, the server generates a page query statement according to the query instruction.
可选的,生成分页查询语句包括:Optionally, generating a paged query statement includes:
根据查询指令按照固定的查询规模生成分页查询语句;或,Generate a paged query statement according to a query size according to a fixed query size; or,
按照固定的查询规模生成第一个分页查询语句后,根据在前的分页查询语句的查询记录生成在后的分页查询语句;After the first paging query statement is generated according to the fixed query size, the subsequent paging query statement is generated according to the query record of the previous paging query statement;
查询规模为查询窗口数与查询窗口显示数据量的乘积;这里,查询窗口显示数据量可以理解为查询窗口大小;The query size is the product of the number of query windows and the amount of data displayed by the query window; here, the amount of data displayed by the query window can be understood as the size of the query window;
查询记录包括:与各分页查询语句成一一对应的执行各分页查询语句时的查询窗口数、查询时长、查询数据的传送时长、查询数据的插入时长。每一分页查询语句都包含有一一对应的一条查询记录。The query record includes: the number of query windows when executing each page query statement in one-to-one correspondence with each page query statement, the query duration, the transmission time of the query data, and the insertion time of the query data. Each paged query statement contains a one-to-one correspondence record.
可选的,根据在前的分页查询语句的查询记录生成在后的分页查询语句包括:Optionally, the subsequent paged query statement generated according to the query record of the previous paged query statement includes:
计算在前的一个分页查询语句的查询时长与预设的响应阈值相除的商,作 为易用系数;Calculate the quotient of the previous query length of a paged query statement divided by the preset response threshold. Ease of use factor;
如果易用系数在预设区间,则不调整查询规模;If the ease factor is in the preset interval, the query size is not adjusted;
需要说明的是,本公开实施例预设区间可以是(0.8,1.05)。预设区间可以是本领域技术人员的经验值,以能够平滑的进行查询数据的浏览作为标准,以能够接受的最慢的查询数据的反馈时间作为底线。It should be noted that the preset interval of the embodiment of the present disclosure may be (0.8, 1.05). The preset interval may be an empirical value of those skilled in the art, so that the browsing of the query data can be smoothly performed as a standard, and the feedback time of the slowest query data that can be accepted is used as the bottom line.
如果易用系数超出预设区间,当查询记录的条数小于预设数值时,不调整下一在后分页查询语句的查询规模;If the easiness factor exceeds the preset interval, when the number of the query records is less than the preset value, the query size of the next post-page query statement is not adjusted;
如果易用系数超出预设区间,当查询记录的条数大于预设数值时,根据查询记录调整在后的一个分页查询语句的查询规模。If the ease factor exceeds the preset interval, when the number of query records is greater than the preset value, the query size of the next page query query is adjusted according to the query record.
需要说明的是,本应用示例查询时长可以通过服务器进行记录;还可以通过客户端计时器记录执行分页查询语句的起始时间到查询数据插入到查询窗口时间,执行分页查询语句的起始时间到查询数据插入到查询窗口时间减去查询时长得到查询数据的传送时长。另外,查询时长、查询数据的传送时长、查询数据的插入时长可以通过队列的方式在进行存储。It should be noted that the application query duration can be recorded by the server; the client timer can be used to record the start time of the page query query to the time when the query data is inserted into the query window, and the start time of the page query is executed. The length of time that the query data is inserted into the query window minus the length of the query to get the query data. In addition, the query duration, the transmission duration of the query data, and the insertion duration of the query data can be stored in a queue manner.
本公开实施例,假设查询窗口数为w、查询数据的传送时长和查询数据的插入时长相加的和为T1,可以拟合获得第一拟合函数T1=a*w+b,通过预设数值个查询记录的内容,可以获得第一拟合函数中的a和b;假设查询时长为T2,可以拟合获得第二拟合函数T2=c*w+d,通过预设数值个查询记录的内容,可以获得第二拟合函数中的c和d;设定目标响应时间,以目标响应时间等于(a*w+c)+(b*w+d)计算获得在后的一个分页查询语句的查询窗口数w的数值,如果计算获得的数值不是整数、则可以进行向上或向下取整。本应用示例,目标响应时间可以设置与预设的响应阈值数值相同,也可以根据实际查询数据反馈快慢要求进行调整。In the embodiment of the present disclosure, if the number of query windows is w, the sum of the transmission duration of the query data and the insertion duration of the query data is T1, the first fitting function T1=a*w+b can be obtained by fitting. For the contents of the numerical query records, a and b in the first fitting function can be obtained; if the query duration is T2, the second fitting function T2=c*w+d can be obtained by fitting, and the query records are preset by a numerical value. Content, you can get c and d in the second fitting function; set the target response time, and calculate the target response time equal to (a*w+c)+(b*w+d) to get the next paged query. The value of the query window number w of the statement. If the calculated value is not an integer, it can be rounded up or down. In this application example, the target response time can be set to be the same as the preset response threshold value, or can be adjusted according to the actual query data feedback speed requirement.
可选的,在后的一个分页查询语句的查询规模可以在客户端进行计算,例如、服务器将记录的查询时长发送到客户端,客户端结合自身记录的查询数据的传送时长、查询数据的插入时长采用上述第一拟合函数、第二拟合函数及目标响应时间计算获得在后的一个分页查询语句的查询规模;在后的一个分页查询语句的查询规模可以在服务端进行计算,例如、客户端将记录的查询数据的传送时长、查询数据的插入时长发往服务器,服务器结合自身记录的查询时长采用上述第一拟合函数、第二拟合函数及目标响应时间计算获得在后的一个分 页查询语句的查询规模;Optionally, the query size of the subsequent pagination query can be calculated on the client. For example, the server sends the recorded query duration to the client, and the client combines the transmission duration of the query data recorded by the client and the insertion of the query data. The duration is calculated by using the first fitting function, the second fitting function and the target response time to obtain the query size of the subsequent pagination query statement; the query size of the subsequent pagination query statement can be calculated on the server side, for example, The client sends the recorded transmission time of the query data and the insertion time of the query data to the server, and the server combines the first fitting function, the second fitting function and the target response time to obtain the latter one. Minute The query size of the page query statement;
本公开实施例,根据查询记录调整在后的分页查询语句的查询规模其实质时,如果查询规模过大,此时易用系数理论上大于预设区间的最大值,通过减少在后的一个分页查询语句的查询窗口数,可以加快查询数据的反馈,易用系数理论上减少;如果查询规模过小,此时易用系数理论上小于预设区间的最小值,通过增加在后的一个分页查询语句的查询窗口数,可以增加查询数据的数据量;使用户在执行一次分页查询语句时,获得足够多的信息;即,易用系数大于预设区间的最大值时,减少在后一个分页查询语句的查询窗口数;易用系数小于预设区间的最大值时,增加在后一个分页查询语句的查询窗口数。查询窗口数的减少量和增加量可以参照拟合函数进行计算获得,也可以按照预设步长或调整函数进行调整。In the embodiment of the present disclosure, when the query size of the subsequent page query statement is adjusted according to the query record, if the query size is too large, the ease factor is theoretically larger than the maximum value of the preset interval, and the subsequent page is reduced. The number of query windows of the query statement can speed up the feedback of the query data, and the ease of use coefficient is theoretically reduced; if the query size is too small, the ease factor is theoretically smaller than the minimum value of the preset interval, by adding a subsequent page query. The number of query windows of the statement can increase the amount of data of the query data; enable the user to obtain enough information when executing a paged query statement; that is, when the ease factor is greater than the maximum value of the preset interval, the query is reduced in the next page. The number of query windows for the statement; when the ease factor is less than the maximum value of the preset interval, the number of query windows in the next paged query statement is increased. The reduction and increase of the number of query windows can be calculated by referring to the fitting function, or can be adjusted according to a preset step size or an adjustment function.
步骤101、服务器执行生成的各分页查询语句,根据各分页查询语句返回相应的查询数据。Step 101: The server executes each generated page query statement, and returns corresponding query data according to each page query statement.
根据在前的分页查询语句的查询时长生成在后的分页查询语句之前,本公开实施例方法还包括:The method of the embodiment of the present disclosure further includes: before the generating the subsequent paging query statement according to the query duration of the preceding paging query.
对各分页查询语句分别进行查询计时,以获得在前的分页查询语句的查询时长。The query timing of each paging query statement is separately obtained to obtain the query duration of the previous paging query statement.
可选的,本公开实施例方法还包括:Optionally, the method of the embodiment of the disclosure further includes:
分页查询语句查询失败时,反馈查询失败信息;When the query of the paging query fails, the query failure information is fed back;
查询失败信息包括查询失败原因和/或预先设定的查询失败编码。The query failure information includes the reason for the query failure and/or a preset query failure code.
可选的,本公开实施例方法还包括:Optionally, the method of the embodiment of the disclosure further includes:
确定返回的查询数据是否是最后一个分页查询语句的最后一个分包数据;Determine whether the returned query data is the last packetized data of the last paged query statement;
如果是最后一个分页查询语句的最后一个分包数据,在浏览查询数据的查询窗口执行最后一个分包数据的插入处理:如果不是最后一个分页查询语句的最后一个分包数据,在浏览查询数据的查询窗口执行中间数据的插入处理。If it is the last packet data of the last paged query statement, the last packet data insertion process is performed in the query window of the browse query data: if it is not the last packet data of the last page query statement, the query data is browsed. The query window performs the insertion processing of the intermediate data.
可选的,本公开实施例方法还包括:Optionally, the method of the embodiment of the disclosure further includes:
检测到浏览查询数据的查询窗口翻页时,确定当前剩余的显示查询数据的查询窗口数是否达到预设的触发在后阈值;这里,触发在后阀值可设定为固定 数,例如、设置为1/3查询窗口数的向上或向下取整;When the query window of the browse query data is detected, it is determined whether the number of query windows of the currently remaining display query data reaches the preset trigger threshold; here, the trigger threshold can be set to be fixed. The number, for example, is set to 1/3 of the number of query windows up or down;
如果当前剩余的显示查询数据的查询窗口数未达到预设的触发在后阈值,继续当前分页查询语句查询数据的显示;如果当前剩余的显示查询数据的查询窗口数达到预设的触发在后阈值,则执行下一在后的分页查询语句。If the current number of query windows displaying the query data does not reach the preset trigger threshold, the display of the query data of the current page query query is continued; if the current number of query windows for displaying the query data reaches the preset trigger threshold , then execute the next post-page query statement.
需要说明的是,通过确定当前剩余的显示查询数据的查询窗口数是否达到预设的触发在后阈值,继而确定是否执行下一在后的分页查询语句,提前进行在后分页查询语句的数据查询,提高了查询数据的反馈效率。It should be noted that, by determining whether the number of query windows of the currently remaining display query data reaches a preset triggering threshold, then determining whether to execute the next subsequent paging query statement, and performing data query of the subsequent paging query in advance , improve the feedback efficiency of query data.
可选的,本公开实施例方法还包括:Optionally, the method of the embodiment of the disclosure further includes:
当未检测到查询窗口翻页或接收到关闭查询窗口的操作时,停止执行分页查询语句。When the query window is not detected or the operation of closing the query window is received, the execution of the paging query is stopped.
可选的,本公开实施例方法还包括:Optionally, the method of the embodiment of the disclosure further includes:
统计在前的预设个数的查询窗口的显示时间;Counting the display time of the previous preset number of query windows;
根据查询窗口的平均显示时长确定剩余查询窗口的显示时长;Determining the display duration of the remaining query windows according to the average display duration of the query window;
当剩余查询窗口的显示时长达到预设的触发阈值时,执行在后的分页查询语句。When the display duration of the remaining query window reaches the preset trigger threshold, the subsequent paged query statement is executed.
需要说明的是,根据查询窗口的显示时间确定是否在触发阈值满足时,提前进行在后分页查询语句的执行,提高了用户获取在后分页查询语句对应的查询数据的速度,提高了用户体验。本公开实施例上述方法的处理可以通过中央处理器实现;实施例方法中涉及的执行内容可以通过生成相应的执行指令后,添加到中央处理器中。It should be noted that, according to the display time of the query window, it is determined whether the execution of the post-page query statement is performed in advance when the trigger threshold is satisfied, thereby improving the speed at which the user obtains the query data corresponding to the post-page query statement, thereby improving the user experience. The processing of the foregoing method in the embodiment of the present disclosure may be implemented by a central processing unit; the execution content involved in the embodiment method may be added to the central processing unit after generating a corresponding execution instruction.
本公开实施例方法,通过分页查询语句降低了进行大表数据访问时查询数据的反馈量,避免了网络通讯和服务器资源的浪费,提升了用户使用体验。In the method of the embodiment of the present disclosure, the paging query statement reduces the feedback amount of the query data when the large table data is accessed, thereby avoiding waste of network communication and server resources, and improving the user experience.
图2为本公开实施例实现数据查询的服务器的结构框图,如图2所示,包括:生成单元和返回单元;其中,2 is a structural block diagram of a server for implementing data query according to an embodiment of the present disclosure. As shown in FIG. 2, the method includes: a generating unit and a returning unit;
生成单元被配置为,接收查询指令后,根据查询指令生成分页查询语句;The generating unit is configured to generate a paging query statement according to the query instruction after receiving the query instruction;
返回单元被配置为,执行生成的各分页查询语句,根据各分页查询语句返回相应的查询数据。The return unit is configured to execute each generated page query statement and return corresponding query data according to each page query statement.
可选的,生成单元被配置为, Optionally, the generating unit is configured to
接收查询指令后,After receiving the query command,
根据查询指令按照固定的查询规模生成分页查询语句;或,Generate a paged query statement according to a query size according to a fixed query size; or,
按照固定的查询规模生成第一个分页查询语句后,根据在前的分页查询语句的查询记录生成在后的分页查询语句;After the first paging query statement is generated according to the fixed query size, the subsequent paging query statement is generated according to the query record of the previous paging query statement;
查询规模为查询窗口数与查询窗口显示数据量的乘积;The query size is the product of the number of query windows and the amount of data displayed in the query window;
查询记录包括:与各分页查询语句成一一对应的执行各分页查询语句时的查询窗口数、查询时长、查询数据的传送时长、查询数据的插入时长。The query record includes: the number of query windows when executing each page query statement in one-to-one correspondence with each page query statement, the query duration, the transmission time of the query data, and the insertion time of the query data.
可选的,生成单元被配置为,Optionally, the generating unit is configured to
根据查询指令按照固定的查询规模生成分页查询语句;或,Generate a paged query statement according to a query size according to a fixed query size; or,
计算在前的一个分页查询语句的查询时长与预设的响应阈值相除的商,作为易用系数;Calculating the quotient of the previous query duration of a paged query statement divided by the preset response threshold as an ease factor;
如果易用系数在预设区间,则不调整查询规模;If the ease factor is in the preset interval, the query size is not adjusted;
如果易用系数超出预设区间,当查询记录的条数小于预设数值时,不调整下一在后分页查询语句的查询规模,生成下一在后的分页查询语句;If the ease factor exceeds the preset interval, when the number of the query records is less than the preset value, the query size of the next post-page query statement is not adjusted, and the next subsequent page query statement is generated;
如果易用系数超出预设区间,当查询记录的条数大于预设数值时,根据查询记录调整在后的一个分页查询语句的查询规模,根据调整的查询规模生成下一在后的分页查询语句。If the easiness factor exceeds the preset interval, when the number of the query records is greater than the preset value, the query size of the subsequent pagination query statement is adjusted according to the query record, and the next subsequent pagination query statement is generated according to the adjusted query size. .
可选的,本公开实施例服务器还包括计时单元,被配置为根据在前的分页查询语句的查询时长生成在后的分页查询语句之前,Optionally, the embodiment of the present disclosure further includes a timing unit configured to generate a subsequent paging query according to a query duration of the preceding paging query.
对各分页查询语句分别进行查询计时,以获得在前的分页查询语句的查询时长。The query timing of each paging query statement is separately obtained to obtain the query duration of the previous paging query statement.
可选的,本公开实施例服务器还包括查询反馈单元,被配置为分页查询语句查询失败时,反馈查询失败信息;Optionally, the server of the disclosure further includes a query feedback unit configured to feed back the query failure information when the query of the page query query fails.
查询失败信息包括查询失败原因和/或预先设定的查询失败编码。The query failure information includes the reason for the query failure and/or a preset query failure code.
可选的,本公开实施例服务器还包括分包处理单元,被配置为确定返回的查询数据是否是最后一个分页查询语句的最后一个分包数据;Optionally, the embodiment of the present disclosure further includes a packet processing unit configured to determine whether the returned query data is the last packet data of the last page query statement;
如果是最后一个分页查询语句的最后一个分包数据,在浏览查询数据的查 询窗口执行最后一个分包数据的插入处理:如果不是最后一个分页查询语句的最后一个分包数据,在浏览查询数据的查询窗口执行中间数据的插入处理。If it is the last subcontracted data of the last pagination query, look up the query data. The inquiry window performs the insertion processing of the last packet data: if it is not the last packet data of the last page query statement, the interpolation processing of the intermediate data is performed in the query window of the browse query data.
可选的,本公开实施例服务器还包括翻页处理单元:Optionally, the server of the disclosure further includes a page turning processing unit:
检测到浏览查询数据的查询窗口翻页时,确定当前剩余的显示查询数据的查询窗口数是否达到预设的触发在后阈值;When the query window of the browse query data is detected, it is determined whether the number of query windows of the currently remaining display query data reaches a preset trigger threshold;
如果当前剩余的显示查询数据的查询窗口数未达到预设的触发在后阈值,继续当前分页查询语句查询数据的显示;如果当前剩余的显示查询数据的查询窗口数达到预设的触发在后阈值,则执行下一在后的分页查询语句。If the current number of query windows displaying the query data does not reach the preset trigger threshold, the display of the query data of the current page query query is continued; if the current number of query windows for displaying the query data reaches the preset trigger threshold , then execute the next post-page query statement.
可选的,本公开实施例服务器还包括停止单元,被配置为未检测到查询窗口翻页或接收到关闭查询窗口的操作时,停止执行分页查询语句。Optionally, the embodiment of the present disclosure further includes a stopping unit configured to stop executing the paging query statement when the query window is not detected to be turned over or the operation of closing the query window is received.
可选的,本公开实施例服务器还包括触发单元,被配置为统计在前的预设个数的查询窗口的显示时间;Optionally, the server of the disclosed embodiment further includes a triggering unit configured to count a display time of the previous preset number of query windows;
根据查询窗口的平均显示时长确定剩余查询窗口的显示时长;Determining the display duration of the remaining query windows according to the average display duration of the query window;
当剩余查询窗口的显示时长达到预设的触发阈值时,执行在后的分页查询语句。When the display duration of the remaining query window reaches the preset trigger threshold, the subsequent paged query statement is executed.
以下通过应用示例对本公开实施例方法进行清楚详细的说明,应用示例仅用于陈述本公开,并不用于限定本公开的保护范围。The method of the embodiments of the present disclosure is described in detail below by way of application examples, and the application examples are only used to illustrate the disclosure, and are not intended to limit the scope of the disclosure.
应用示例Application example
本应用示例系统包括客户端和服务器,客户端部署在应用系统的数据访问界面,图3为本公开应用示例的方法流程图,如图3所示,包括:The application example system includes a client and a server, and the client is deployed in a data access interface of the application system. FIG. 3 is a flowchart of a method for applying the example of the present disclosure. As shown in FIG. 3, the method includes:
步骤300、服务器启动数据访问的查询线程;Step 300: The server starts a query thread for data access;
需要说明的是,本公开应用示例数据查询线程也可以在用户打开浏览窗口时再建立,属于本领域技术人员的惯用技术手段,在此不再赘述。这里查询线程指访问大表数据的查询线程。It should be noted that the application data query thread of the present disclosure may also be established when the user opens the browsing window, which is a conventional technical means by those skilled in the art, and details are not described herein again. Here the query thread refers to the query thread that accesses the large table data.
步骤301、客户端接收用户指令确定访问数据的数据范围,向服务器发送查询指令;Step 301: The client receives a user instruction to determine a data range of the access data, and sends a query instruction to the server.
本步骤触发客户端进入数据浏览过程,可以包含以下处理:通过确定数据范围使客户端进入查询状态,即置客户端查询结束状态为假;发送查询指令到 服务器,服务器进入查询状态。本应用示例向服务器发送的查询指令可以包含:条件查询语句、浏览窗口页面大小、查询窗口数;其中,查询窗口数的初始值可以采用预设值,例如预设值可以设定为统计分析确定的访问页面数量均值,例如设定查询窗口数的初始值为5。This step triggers the client to enter the data browsing process, and may include the following processing: by determining the data range, the client enters the query state, that is, the client query end state is false; sending the query command to Server, the server enters the query state. The query instruction sent by the application example to the server may include: a conditional query statement, a browse window page size, and a query window number; wherein, the initial value of the query window number may adopt a preset value, for example, the preset value may be set to be determined by statistical analysis. The average number of access pages, for example, the initial value of the number of query windows is 5.
步骤302、服务器接收查询指令后,根据查询指令生成分页查询语句;Step 302: After receiving the query instruction, the server generates a page query statement according to the query instruction.
本步骤中,生成分页查询语句包括:In this step, generating a paged query statement includes:
根据查询指令按照固定的查询规模生成分页查询语句;或,Generate a paged query statement according to a query size according to a fixed query size; or,
按照固定的查询规模生成第一个分页查询语句后,根据在前的分页查询语句的查询记录生成在后的分页查询语句;After the first paging query statement is generated according to the fixed query size, the subsequent paging query statement is generated according to the query record of the previous paging query statement;
查询规模为查询窗口数与查询窗口显示数据量的乘积;The query size is the product of the number of query windows and the amount of data displayed in the query window;
查询记录包括:与各分页查询语句成一一对应的执行各分页查询语句时的查询窗口数、查询时长、查询数据的传送时长、查询数据的插入时长。The query record includes: the number of query windows when executing each page query statement in one-to-one correspondence with each page query statement, the query duration, the transmission time of the query data, and the insertion time of the query data.
可选的,根据查询指令按照固定的查询规模生成分页查询语句时,生成的每一个分页查询语句的查询规模可以相同;例如,查询规模中的查询窗口数的设置为5~7中的一个固定值,此时根据查询指令生成所有符合要求的分页查询语句,本公开应用示例采用固定的查询规模生成分页查询语句时,查询规模可以作为固定的参数进行保存。Optionally, when the paging query statement is generated according to the query instruction according to the fixed query size, the query size of each generated paging query statement may be the same; for example, the number of query windows in the query size is set to a fixed value of 5-7. Value, at this time, according to the query instruction, all the paged query statements that meet the requirements are generated. When the application example of the present disclosure uses a fixed query size to generate a paged query statement, the query size can be saved as a fixed parameter.
根据在前的分页查询语句的查询记录生成在后的分页查询语句包括:The subsequent paged query statement generated according to the query record of the previous paged query statement includes:
计算在前一个分页查询语句的查询时长与预设的响应阈值相除后,作为易用系数;Calculating the ease of use after the query duration of the previous paged query is divided by the preset response threshold;
需要说明的是,响应阈值可以基于行业标准、客户要求或技术人员设计指标确定,响应阈值主要参考分页查询语句的响应时长;一般的,大表数据查询时,小型操作响应时间在秒级,例如、3到5秒,此时响应阈值可以设置为3到5秒,如果响应阈值设置过大,在预设区间不变的情况下,将影响用户进行数据查询的使用体验。It should be noted that the response threshold may be determined based on industry standards, customer requirements, or technician design indicators. The response threshold mainly refers to the response duration of the paged query statement; in general, when the large table data is queried, the small operation response time is in the second level, for example, 3 to 5 seconds, the response threshold can be set to 3 to 5 seconds. If the response threshold is set too large, the user will be affected by the data query experience if the preset interval is unchanged.
如果易用系数在预设区间,则不调整查询规模;本应用示例预设区间可以是(0.8,1.05)。预设区间可以是本领域技术人员的经验值,以能够平滑的进行查询数据的浏览作为标准,以能够接受的最慢的查询数据的反馈时间作为底线。 If the ease factor is in the preset interval, the query size is not adjusted; the preset interval of this application example may be (0.8, 1.05). The preset interval may be an empirical value of those skilled in the art, so that the browsing of the query data can be smoothly performed as a standard, and the feedback time of the slowest query data that can be accepted is used as the bottom line.
如果易用系数超出预设区间,当查询记录的条数小于预设数值时,不调整查询规模;这里,不调整查询规模包括:按照在前的分页查询语句的查询规模生成在后查询语句;预设数值可以设置为大于或等于2的整数。If the easiness factor exceeds the preset interval, when the number of the query records is less than the preset value, the query size is not adjusted; here, the query size is not adjusted: the post query statement is generated according to the query size of the previous pagination query; The preset value can be set to an integer greater than or equal to 2.
查询记录包括:执行各分页查询语句时,与各分页查询语句成一一对应的查询窗口数、查询响应时间;其中,查询响应时间包含:查询时长、查询数据的传送时长、查询数据的插入时长;The query record includes: the number of query windows and the query response time in one-to-one correspondence with each page query statement when executing each page query statement; wherein the query response time includes: the query duration, the transmission time of the query data, and the insertion time of the query data. ;
本应用示例查询时长通过服务器进行记录;本应用示例还可以通过客户端计时器记录执行分页查询语句的起始时间到查询数据插入到查询窗口时间,执行分页查询语句的起始时间到查询数据插入到查询窗口时间减去查询时长得到查询数据的传送时长。This application example query duration is recorded by the server; this application example can also record the start time of executing the paged query statement through the client timer to the time when the query data is inserted into the query window, and the start time of the paged query statement to the query data insertion. The length of the query window is subtracted from the query window time to get the length of the query data.
需要说明的是,调整记录可以通过队列的方式在服务器中进行处理。It should be noted that the adjustment record can be processed in the server by means of a queue.
如果易用系数超出预设区间,当查询记录的条数大于预设数值时,根据查询记录调整在后的分页查询语句的查询规模。If the ease factor exceeds the preset interval, when the number of query records is greater than the preset value, the query size of the subsequent page query statement is adjusted according to the query record.
本应用示例,假设查询窗口数为w、查询数据的传送时长和查询数据的插入时长相加的和为T1,可以拟合获得第一拟合函数T1=a*w+b,通过预设数值个查询记录的内容,可以获得第一拟合函数中的a和b;假设查询时长为T2,可以拟合获得第二拟合函数T2=c*w+d,通过预设数值个查询记录的内容,可以获得第二拟合函数中的c和d;设定目标响应时间,以目标响应时间等于(a*w+c)+(b*w+d)计算获得在后的一个分页查询语句的查询窗口数w的数值,如果计算获得的数值不是整数、则可以进行向上或向下取整。本应用示例,目标响应时间可以设置与预设的响应阈值数值相同,也可以根据实际查询数据反馈快慢要求进行调整。In this application example, assuming that the number of query windows is w, the sum of the transmission duration of the query data and the insertion duration of the query data is T1, the first fitting function T1=a*w+b can be obtained by fitting, and the preset value is obtained. For the contents of the query record, a and b in the first fitting function can be obtained; if the query duration is T2, the second fitting function T2=c*w+d can be obtained by fitting, and the record is recorded by a preset value. Content, can obtain c and d in the second fitting function; set the target response time, and calculate the target response time equal to (a*w+c)+(b*w+d) to obtain a subsequent paged query statement. The value of the number of query windows w, if the value obtained by the calculation is not an integer, it can be rounded up or down. In this application example, the target response time can be set to be the same as the preset response threshold value, or can be adjusted according to the actual query data feedback speed requirement.
本应用示例中,在后的一个分页查询语句的查询规模可以在客户端进行计算,例如、服务器将记录的查询时长发送到客户端,客户端结合自身记录的查询数据的传送时长、查询数据的插入时长采用上述第一拟合函数、第二拟合函数及目标响应时间计算获得在后的一个分页查询语句的查询规模;在后的一个分页查询语句的查询规模可以在服务端进行计算,例如、客户端将记录的查询数据的传送时长、查询数据的插入时长发往服务器,服务器结合自身记录的查询时长采用上述第一拟合函数、第二拟合函数及目标响应时间计算获得在后的一个分页查询语句的查询规模; In this application example, the query size of the next paged query statement can be calculated on the client side. For example, the server sends the recorded query duration to the client, and the client combines the record length of the query data recorded by the client and the query data. The insertion duration is calculated by using the first fitting function, the second fitting function and the target response time to obtain the query size of the subsequent pagination query statement; the query size of the subsequent pagination query statement can be calculated on the server side, for example, The client sends the record transmission time of the query data and the insertion time of the query data to the server, and the server combines the first fitting function, the second fitting function and the target response time to obtain the subsequent query time. The query size of a paged query statement;
这里,易用系数超出预设区间包括易用系数的数值小于预设区间的最小值和易用系数的数值大于预设区间的最大值两种情况;易用系数的数值小于预设区间的最小值时,本应用示例根据查询记录拟合获得第一拟合函数和第二拟合函数,通过设定的目标响应时间可以计算获得下一在后分页查询语句的查询窗口数大于在前分页查询语句的查询窗口数;易用系数的数值大于预设区间的最大值时,本应用示例根据查询记录拟合获得第一拟合函数和第二拟合函数,通过设定的目标响应时间可以计算获得下一在后分页查询语句的查询窗口数小于在前分页查询语句的查询窗口数;通过调整,各分页查询语句反馈的查询数据在数据量和反馈速率上得到综合,提高用户在大表中进行数据查询的使用体验。Here, the ease factor exceeds the preset interval, where the value of the ease factor is less than the minimum value of the preset interval and the value of the ease factor is greater than the maximum value of the preset interval; the value of the ease factor is less than the minimum of the preset interval When the value is used, the application example obtains the first fitting function and the second fitting function according to the query record fitting, and the number of query windows of the next post-page query statement can be calculated by setting the target response time to be larger than the previous pagination query. The number of query windows of the statement; when the value of the easy-to-use coefficient is greater than the maximum value of the preset interval, the application example obtains the first fitting function and the second fitting function according to the query record fitting, and can be calculated by setting the target response time. The number of query windows for obtaining the next post-page query statement is smaller than the number of query windows for the previous page query statement; by adjusting, the query data fed back by each page query statement is integrated in the data amount and the feedback rate, thereby improving the user in the large table. The experience of using data queries.
需要说明的是,根据在前的分页查询语句的查询时长生成在后的分页查询语句时,可以采用预先设定的默认值作为第一个分页查询语句的查询规模,查询规模等于查询窗口数与客户端窗口显示数据量的乘积;一般的查询窗口数的初始值可以是5~7,取值可以根据分页查询语句执行时,查询数据返回速度和用户使用体验进行调整。It should be noted that, according to the query duration of the previous paging query, the default paging value may be used as the query size of the first paging query, and the query size is equal to the number of query windows. The client window displays the product of the amount of data; the initial value of the general query window can be 5 to 7, and the value can be adjusted according to the query data return speed and the user experience when the page query statement is executed.
本公开应用示例方法还包括:对各分页查询语句分别进行查询计时,以获得在前的分页查询语句的查询时长。The example method of the present disclosure further includes: performing query timing on each page query statement to obtain a query duration of the previous page query statement.
需要说明的是,本公开应用示例查询计时可以通过计时器进行,查询时长可以通过记录每一个分页查询语句的查询起点时间和结束时间获得,如果是连续的查询,则上一分页查询语句的结束时间为当前分页查询语句的起点时间;如果分页查询语句为非连续的查询,则查询时长可以通过读取分页查询语句开始到结束时的系统时间获得。It should be noted that the application query timing of the present disclosure can be performed by a timer, and the query duration can be obtained by recording the query start time and end time of each page query query. If it is a continuous query, the end of the previous page query statement The time is the starting time of the current paging query statement; if the paging query statement is a non-contiguous query, the query duration can be obtained by reading the system time from the beginning to the end of the paging query.
步骤303、服务器执行生成的各分页查询语句,根据各分页查询语句返回相应的查询数据;Step 303: The server executes each generated page query statement, and returns corresponding query data according to each page query statement.
分页查询语句进行查询时,一般起点时间和查询规模会被压入查询堆栈内,完成分页查询语句的执行时,清空查询堆栈内分页查询语句。When a paging query is queried, the general starting time and the query size are pushed into the query stack. When the execution of the paging query is completed, the paging query in the query stack is cleared.
需要说明的是,执行查询指令按照现有的连接访问需要访问的数据库或大表,例如,通过数据库大表访问接口与数据库建立连接;访问连接数据库或数据库中大表的内容为本领域技术人员的惯用技术手段,在此不再赘述。It should be noted that the execution of the query instruction according to the existing connection access needs to access the database or the large table, for example, through the database large table access interface to establish a connection with the database; access to the database or the contents of the large table in the database is a person skilled in the art The usual technical means will not be repeated here.
本公开应用示例还包括: The application examples of the disclosure also include:
分页查询语句查询失败时,反馈查询失败信息;When the query of the paging query fails, the query failure information is fed back;
可选的,查询失败信息可以是查询失败原因、和/或预先设定的查询失败编码。Optionally, the query failure information may be a query failure reason, and/or a preset query failure code.
本公开应用示例还包括:确定返回的查询数据是否是最后一个分页查询语句的最后一个分包数据:The application example of the present disclosure further includes determining whether the returned query data is the last packetized data of the last paged query statement:
如果是最后一个分页查询语句的最后一个分包数据,在浏览查询数据的查询窗口执行最后一个分包数据的插入处理:可选的,If it is the last packetized data of the last paged query statement, the last packetized data insertion process is performed in the query window of the browse query data: optional,
对提取的分包数据的每一条数据,确定是否是分页查询语句的查询数据,如果是分页查询语句的查询数据,将提取的数据插入到客户端访问窗口进行显示,直至分包数据中是分页查询语句的查询数据的最后一条数据时,完成数据插入;For each piece of data of the extracted sub-package data, determine whether it is the query data of the page-by-page query statement. If it is the query data of the page-by-page query statement, the extracted data is inserted into the client access window for display until the packet data is paginated. When the last data of the query data of the query is queried, the data insertion is completed;
需要说明的是,进行插入处理时,置插入状态为真;停止插入时,置插入状态为假、查询结束为真,分页查询语句结束。It should be noted that when the insertion process is performed, the insertion state is true; when the insertion is stopped, the insertion state is false, the query end is true, and the page query statement ends.
如果不是最后一个分页查询语句的最后一个分包数据,在浏览查询数据的查询窗口执行中间数据的插入处理。If it is not the last packet data of the last paged query statement, the interpolation process of the intermediate data is performed in the query window of the browse query data.
需要说明的是,插入中间数据时,可以通过逐条提取分包数据的每一条数据插入到客户端访问窗口;进行数据插入时,置越界插入状态为假;本公开应用示例对分页查询语句的查询时长进行计时时,中间数据的插入处理中,最后一条数据完成客户端访问端口的插入时,该分页查询语句的查询时长截止。It should be noted that, when inserting the intermediate data, each piece of data of the extracted packet data may be inserted into the client access window one by one; when the data is inserted, the out-of-boundary insertion state is false; the application example of the present application queries the paged query statement. When the duration is timed, in the insertion process of the intermediate data, when the last piece of data completes the insertion of the client access port, the query duration of the paged query statement is cut off.
本应用示例方法还包括:检测到浏览查询数据的查询窗口翻页时,确定当前剩余的显示查询数据的查询窗口数是否达到预设的触发在后阈值;The application example method further includes: when detecting the page of the query window for browsing the query data, determining whether the number of the query windows of the currently remaining display query data reaches a preset triggering threshold;
如果当前剩余的显示查询数据的查询窗口数未达到预设的触发在后阈值,继续当前分页查询语句查询数据的显示;如果当前剩余的显示查询数据的查询窗口数达到预设的触发在后阈值,则执行下一在后的分页查询语句。If the current number of query windows displaying the query data does not reach the preset trigger threshold, the display of the query data of the current page query query is continued; if the current number of query windows for displaying the query data reaches the preset trigger threshold , then execute the next post-page query statement.
本应用示例方法还包括:This application example method also includes:
当未检测到翻页或接收到关闭查询窗口的操作时,停止执行分页查询语句。When the page turning is not detected or the operation of closing the query window is received, the execution of the page query statement is stopped.
本公开应用示例还包括:The application examples of the disclosure also include:
统计在前的预设个数的查询窗口的显示时间; Counting the display time of the previous preset number of query windows;
根据查询窗口的平均显示时长确定剩余查询窗口的显示时长;Determining the display duration of the remaining query windows according to the average display duration of the query window;
当剩余查询窗口的显示时长达到预设的触发阈值时,执行在后的分页查询语句。When the display duration of the remaining query window reaches the preset trigger threshold, the subsequent paged query statement is executed.
需要说明的是,预设个数根据实际使用情况进行设定,例如两个或三个,查询规模越大,预设个数的数值越大。It should be noted that the preset number is set according to the actual usage, for example, two or three. The larger the query size, the larger the preset number.
步骤304、根据查询指令结束信息结束数据查询;这里,结束查询时,查询规模,查询时长计时等将进行清空处理,断开或保持与数据库连接、结束或保留查询线程根据实际情况进行设定。Step 304: End the data query according to the query instruction end information; here, when the query is ended, the query size, the query duration timer, etc. will be cleared, disconnected or kept connected with the database, ended or retained, and the query thread is set according to the actual situation.
本公开实施例还提供了一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述任一实施例中的方法。Embodiments of the present disclosure also provide a non-transitory computer readable storage medium storing computer executable instructions arranged to perform the method of any of the above embodiments.
本公开实施例还提供了一种电子设备的结构示意图。参见图4,该电子设备包括:The embodiment of the present disclosure further provides a schematic structural diagram of an electronic device. Referring to FIG. 4, the electronic device includes:
至少一个处理器(processor)40,图4中以一个处理器40为例;和存储器(memory)41,还可以包括通信接口(Communications Interface)42和总线43。其中,处理器40、通信接口42、存储器41可以通过总线43完成相互间的通信。通信接口42可以用于信息传输。处理器40可以调用存储器41中的逻辑指令,以执行上述实施例的方法。At least one processor 40, which is exemplified by a processor 40 in FIG. 4; and a memory 41, may further include a communication interface 42 and a bus 43. The processor 40, the communication interface 42, and the memory 41 can complete communication with each other through the bus 43. Communication interface 42 can be used for information transmission. Processor 40 may invoke logic instructions in memory 41 to perform the methods of the above-described embodiments.
此外,上述的存储器41中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。In addition, the logic instructions in the memory 41 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
存储器41作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序,如本公开实施例中的方法对应的程序指令/模块。处理器40通过运行存储在存储器41中的软件程序、指令以及模块,从而执行功能应用以及数据处理,即实现上述方法实施例中的实现数据查询的方法。The memory 41 is used as a computer readable storage medium for storing software programs, computer executable programs, and program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 40 executes the function application and the data processing by executing the software program, the instruction and the module stored in the memory 41, that is, the method for implementing the data query in the above method embodiment.
存储器41可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用 所创建的数据等。此外,存储器41可以包括高速随机存取存储器,还可以包括非易失性存储器。The memory 41 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; and the storage data area may be stored according to the use of the terminal device The data created, etc. Further, the memory 41 may include a high speed random access memory, and may also include a nonvolatile memory.
本公开实施例的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括一个或多个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开实施例所述方法的全部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product stored in a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, or a network) The device or the like) performs all or part of the steps of the method described in the embodiments of the present disclosure. The foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like. A medium that can store program code, or a transitory storage medium.
虽然本公开所揭露的实施方式如上,但所述的内容仅为便于理解本公开而采用的实施方式,并非用以限定本公开。任何本公开所属领域内的技术人员,在不脱离本公开所揭露的实施例范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本公开的专利保护范围,仍须以所附的权利要求书所界定的范围为准。The embodiments disclosed in the present disclosure are as described above, but are merely used to facilitate the understanding of the present disclosure, and are not intended to limit the present disclosure. Any modification or variation in the form and details of the embodiments may be made by those skilled in the art without departing from the scope of the embodiments disclosed herein. The scope defined by the appended claims shall prevail.
工业实用性Industrial applicability
本公开提供的实现数据查询的方法及服务器降低了进行大表数据访问时查询数据的反馈量,避免了网络通讯和服务器资源的浪费,提升了用户使用体验。 The method and server for implementing data query provided by the present disclosure reduce the feedback amount of query data when performing large table data access, avoiding waste of network communication and server resources, and improving the user experience.

Claims (19)

  1. 一种实现数据查询的方法,包括:A method of implementing data query, comprising:
    服务器接收查询指令后,根据查询指令生成分页查询语句;After receiving the query instruction, the server generates a page query statement according to the query instruction;
    服务器执行生成的各分页查询语句,根据各分页查询语句返回相应的查询数据。The server executes each generated page query statement and returns corresponding query data according to each page query statement.
  2. 根据权利要求1所述的方法,其中,所述生成分页查询语句包括:The method of claim 1 wherein said generating a paged query statement comprises:
    根据所述查询指令按照固定的查询规模生成所述分页查询语句;或,Generating the paged query statement according to the fixed query size according to the query instruction; or
    按照固定的查询规模生成第一个所述分页查询语句后,根据在前的分页查询语句的查询记录生成在后的分页查询语句;After generating the first paging query according to the fixed query size, generating a subsequent paging query according to the query record of the preceding paging query;
    所述查询规模为查询窗口数与查询窗口显示数据量的乘积;The query size is a product of the number of query windows and the amount of data displayed by the query window;
    所述查询记录包括:与各分页查询语句成一一对应的执行各分页查询语句时的查询窗口数、查询时长、查询数据的传送时长、查询数据的插入时长。The query record includes: the number of query windows, the query duration, the transmission duration of the query data, and the insertion duration of the query data when the page break query statement is executed in one-to-one correspondence with each page query statement.
  3. 根据权利要求2所述的方法,其中,所述根据在前的分页查询语句的查询记录生成在后的分页查询语句包括:The method of claim 2, wherein the generating the subsequent paged query statement according to the query record of the preceding paged query statement comprises:
    计算在前的一个分页查询语句的所述查询时长与预设的响应阈值相除的商,作为易用系数;Calculating a quotient of the query duration of a preceding page query statement divided by a preset response threshold as an ease factor;
    如果易用系数在预设区间,则不调整查询规模;If the ease factor is in the preset interval, the query size is not adjusted;
    如果易用系数超出预设区间,当查询记录的条数小于预设数值时,不调整下一在后分页查询语句的查询规模,生成下一在后的分页查询语句;If the ease factor exceeds the preset interval, when the number of the query records is less than the preset value, the query size of the next post-page query statement is not adjusted, and the next subsequent page query statement is generated;
    如果易用系数超出预设区间,当查询记录的条数大于预设数值时,根据查询记录调整在后的一个分页查询语句的查询规模,根据调整的查询规模生成下一在后的分页查询语句。If the easiness factor exceeds the preset interval, when the number of the query records is greater than the preset value, the query size of the subsequent pagination query statement is adjusted according to the query record, and the next subsequent pagination query statement is generated according to the adjusted query size. .
  4. 根据权利要求2或3所述的方法,其中,所述根据在前的分页查询语句 的查询时长生成在后的分页查询语句之前,该方法还包括:The method according to claim 2 or 3, wherein said prior paging query The query duration is generated before the subsequent paged query statement. The method also includes:
    对各所述分页查询语句分别进行查询计时,以获得在前的分页查询语句的所述查询时长。The query timing is respectively performed on each of the paging query statements to obtain the query duration of the previous paging query statement.
  5. 根据权利要求1~3任一项所述的方法,还包括:The method according to any one of claims 1 to 3, further comprising:
    所述分页查询语句查询失败时,反馈查询失败信息;When the query of the page query query fails, the query failure information is fed back;
    所述查询失败信息包括查询失败原因和/或预先设定的查询失败编码。The query failure information includes a query failure reason and/or a preset query failure code.
  6. 根据权利要求1~3任一项所述的方法,还包括:The method according to any one of claims 1 to 3, further comprising:
    确定返回的所述查询数据是否是最后一个分页查询语句的最后一个分包数据;Determining whether the returned query data is the last packet data of the last page query statement;
    如果是最后一个分页查询语句的最后一个分包数据,在浏览查询数据的查询窗口执行最后一个分包数据的插入处理:如果不是最后一个分页查询语句的最后一个分包数据,在浏览查询数据的查询窗口执行中间数据的插入处理。If it is the last packet data of the last paged query statement, the last packet data insertion process is performed in the query window of the browse query data: if it is not the last packet data of the last page query statement, the query data is browsed. The query window performs the insertion processing of the intermediate data.
  7. 根据权利要求1~3任一项所述的方法,还包括:The method according to any one of claims 1 to 3, further comprising:
    检测到浏览查询数据的查询窗口翻页时,确定当前剩余的显示查询数据的查询窗口数是否达到预设的触发在后阈值;When the query window of the browse query data is detected, it is determined whether the number of query windows of the currently remaining display query data reaches a preset trigger threshold;
    如果当前剩余的显示查询数据的查询窗口数未达到预设的触发在后阈值,继续当前分页查询语句查询数据的显示;如果当前剩余的显示查询数据的查询窗口数达到预设的触发在后阈值,则执行下一在后的分页查询语句。If the current number of query windows displaying the query data does not reach the preset trigger threshold, the display of the query data of the current page query query is continued; if the current number of query windows for displaying the query data reaches the preset trigger threshold , then execute the next post-page query statement.
  8. 根据权利要求1~3任一项所述的方法,还包括:The method according to any one of claims 1 to 3, further comprising:
    当未检测到查询窗口翻页或接收到关闭查询窗口的操作时,停止执行分页查询语句。When the query window is not detected or the operation of closing the query window is received, the execution of the paging query is stopped.
  9. 根据权利要求1~3任一项所述的方法,还包括:The method according to any one of claims 1 to 3, further comprising:
    统计在前的预设个数的查询窗口的显示时间; Counting the display time of the previous preset number of query windows;
    根据查询窗口的平均显示时长确定剩余查询窗口的显示时长;Determining the display duration of the remaining query windows according to the average display duration of the query window;
    当剩余查询窗口的显示时长达到预设的触发阈值时,执行在后的分页查询语句。When the display duration of the remaining query window reaches the preset trigger threshold, the subsequent paged query statement is executed.
  10. 一种实现数据查询的服务器,包括:生成单元和返回单元;其中,A server for implementing data query, comprising: a generating unit and a return unit; wherein
    生成单元被配置为,接收查询指令后,根据查询指令生成分页查询语句;The generating unit is configured to generate a paging query statement according to the query instruction after receiving the query instruction;
    返回单元被配置为,执行生成的各分页查询语句,根据各分页查询语句返回相应的查询数据。The return unit is configured to execute each generated page query statement and return corresponding query data according to each page query statement.
  11. 根据权利要求10所述的服务器,其中,所述生成单元被配置为,The server according to claim 10, wherein said generating unit is configured to
    接收所述查询指令后,After receiving the query instruction,
    根据所述查询指令按照固定的查询规模生成所述分页查询语句;或,Generating the paged query statement according to the fixed query size according to the query instruction; or
    按照固定的查询规模生成第一个所述分页查询语句后,根据在前的分页查询语句的查询记录生成在后的分页查询语句;After generating the first paging query according to the fixed query size, generating a subsequent paging query according to the query record of the preceding paging query;
    所述查询规模为查询窗口数与查询窗口显示数据量的乘积;The query size is a product of the number of query windows and the amount of data displayed by the query window;
    所述查询记录包括:与各分页查询语句成一一对应的执行各分页查询语句时的查询窗口数、查询时长、查询数据的传送时长、查询数据的插入时长。The query record includes: the number of query windows, the query duration, the transmission duration of the query data, and the insertion duration of the query data when the page break query statement is executed in one-to-one correspondence with each page query statement.
  12. 根据权利要求10所述的服务器,其中,所述生成单元被配置为,The server according to claim 10, wherein said generating unit is configured to
    接收所述查询指令后,After receiving the query instruction,
    根据所述查询指令按照固定的查询规模生成所述分页查询语句;或,Generating the paged query statement according to the fixed query size according to the query instruction; or
    计算在前的一个分页查询语句的所述查询时长与预设的响应阈值相除的商,作为易用系数;Calculating a quotient of the query duration of a preceding page query statement divided by a preset response threshold as an ease factor;
    如果易用系数在预设区间,则不调整查询规模;If the ease factor is in the preset interval, the query size is not adjusted;
    如果易用系数超出预设区间,当查询记录的条数小于预设数值时,不调整下一在后分页查询语句的查询规模,生成下一在后的分页查询语句; If the ease factor exceeds the preset interval, when the number of the query records is less than the preset value, the query size of the next post-page query statement is not adjusted, and the next subsequent page query statement is generated;
    如果易用系数超出预设区间,当查询记录的条数大于预设数值时,根据查询时间调整在后的一个分页查询语句的查询规模,根据调整的查询规模生成下一在后的分页查询语句。If the ease factor exceeds the preset interval, when the number of query records is greater than the preset value, the query size of the next page query query is adjusted according to the query time, and the next subsequent page query statement is generated according to the adjusted query size. .
  13. 根据权利要求11或12所述的服务器,还包括计时单元,被配置为所述根据在前的分页查询语句的查询时长生成在后的分页查询语句之前,The server according to claim 11 or 12, further comprising a timing unit configured to generate the subsequent paging query statement according to the query duration of the preceding paging query statement,
    对各所述分页查询语句分别进行查询计时,以获得在前的分页查询语句的所述查询时长。The query timing is respectively performed on each of the paging query statements to obtain the query duration of the previous paging query statement.
  14. 根据权利要求10~12任一项所述的服务器,还包括查询反馈单元,被配置为所述分页查询语句查询失败时,反馈查询失败信息;The server according to any one of claims 10 to 12, further comprising a query feedback unit configured to feed back the query failure information when the page query query fails to be queried;
    所述查询失败信息包括查询失败原因和/或预先设定的查询失败编码。The query failure information includes a query failure reason and/or a preset query failure code.
  15. 根据权利要求10~12任一项所述的服务器,还包括分包处理单元,被配置为确定返回的所述查询数据是否是最后一个分页查询语句的最后一个分包数据;The server according to any one of claims 10 to 12, further comprising a packet processing unit configured to determine whether the returned query data is the last packet data of the last page query statement;
    如果是最后一个分页查询语句的最后一个分包数据,在浏览查询数据的查询窗口执行最后一个分包数据的插入处理:如果不是最后一个分页查询语句的最后一个分包数据,在浏览查询数据的查询窗口执行中间数据的插入处理。If it is the last packet data of the last paged query statement, the last packet data insertion process is performed in the query window of the browse query data: if it is not the last packet data of the last page query statement, the query data is browsed. The query window performs the insertion processing of the intermediate data.
  16. 根据权利要求10~12任一项所述的服务器,还包括翻页处理单元:The server according to any one of claims 10 to 12, further comprising a page turning processing unit:
    检测到浏览查询数据的查询窗口翻页时,确定当前剩余的显示查询数据的查询窗口数是否达到预设的触发在后阈值;When the query window of the browse query data is detected, it is determined whether the number of query windows of the currently remaining display query data reaches a preset trigger threshold;
    如果当前剩余的显示查询数据的查询窗口数未达到预设的触发在后阈值,继续当前分页查询语句查询数据的显示;如果当前剩余的显示查询数据的查询窗口数达到预设的触发在后阈值,则执行下一在后的分页查询语句。If the current number of query windows displaying the query data does not reach the preset trigger threshold, the display of the query data of the current page query query is continued; if the current number of query windows for displaying the query data reaches the preset trigger threshold , then execute the next post-page query statement.
  17. 根据权利要求10~12任一项所述的服务器,还包括停止单元,被配置 为未检测到查询窗口翻页或接收到关闭查询窗口的操作时,停止执行分页查询语句。A server according to any one of claims 10 to 12, further comprising a stop unit configured Stop paging execution query when the page is not detected by the query window or when the operation of closing the query window is received.
  18. 根据权利要求10~12任一项所述的服务器,还包括触发单元,被配置为统计在前的预设个数的查询窗口的显示时间;The server according to any one of claims 10 to 12, further comprising a triggering unit configured to count the display time of the previous preset number of query windows;
    根据查询窗口的平均显示时长确定剩余查询窗口的显示时长;Determining the display duration of the remaining query windows according to the average display duration of the query window;
    当剩余查询窗口的显示时长达到预设的触发阈值时,执行在后的分页查询语句。When the display duration of the remaining query window reaches the preset trigger threshold, the subsequent paged query statement is executed.
  19. 一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-9中任一项的方法。 A non-transitory computer readable storage medium storing computer executable instructions arranged to perform the method of any of claims 1-9.
PCT/CN2017/072178 2016-02-05 2017-01-23 Method for realizing data query and server WO2017133538A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610079493.1A CN107045499A (en) 2016-02-05 2016-02-05 A kind of method and server for realizing data query
CN201610079493.1 2016-02-05

Publications (1)

Publication Number Publication Date
WO2017133538A1 true WO2017133538A1 (en) 2017-08-10

Family

ID=59500457

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/072178 WO2017133538A1 (en) 2016-02-05 2017-01-23 Method for realizing data query and server

Country Status (2)

Country Link
CN (1) CN107045499A (en)
WO (1) WO2017133538A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109359060A (en) * 2018-10-24 2019-02-19 北京奇虎科技有限公司 Data pick-up method, apparatus calculates equipment and computer storage medium
CN111125148A (en) * 2019-12-12 2020-05-08 中化石化销售有限公司 Paging query method and device for database
CN112667662A (en) * 2020-12-25 2021-04-16 银盛支付服务股份有限公司 Common method for analyzing sql and nosql based on json key values
CN114039970A (en) * 2021-11-11 2022-02-11 北京沃东天骏信息技术有限公司 Information downloading method and device, electronic equipment and computer readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040148273A1 (en) * 2003-01-27 2004-07-29 International Business Machines Corporation Method, system, and program for optimizing database query execution
CN101216840A (en) * 2008-01-21 2008-07-09 金蝶软件(中国)有限公司 Data enquiry method and data enquiry system
CN102521405A (en) * 2011-12-26 2012-06-27 中国科学院计算技术研究所 Massive structured data storage and query methods and systems supporting high-speed loading
CN102880685A (en) * 2012-09-13 2013-01-16 北京航空航天大学 Method for interval and paging query of time-intensive B/S (Browser/Server) with large data size

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8996486B2 (en) * 2004-12-15 2015-03-31 Applied Invention, Llc Data store with lock-free stateless paging capability
CN103853727B (en) * 2012-11-29 2018-07-31 深圳中兴力维技术有限公司 Improve the method and system of big data quantity query performance
CN104965873A (en) * 2015-06-10 2015-10-07 努比亚技术有限公司 Paging inquiring method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040148273A1 (en) * 2003-01-27 2004-07-29 International Business Machines Corporation Method, system, and program for optimizing database query execution
CN101216840A (en) * 2008-01-21 2008-07-09 金蝶软件(中国)有限公司 Data enquiry method and data enquiry system
CN102521405A (en) * 2011-12-26 2012-06-27 中国科学院计算技术研究所 Massive structured data storage and query methods and systems supporting high-speed loading
CN102880685A (en) * 2012-09-13 2013-01-16 北京航空航天大学 Method for interval and paging query of time-intensive B/S (Browser/Server) with large data size

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109359060A (en) * 2018-10-24 2019-02-19 北京奇虎科技有限公司 Data pick-up method, apparatus calculates equipment and computer storage medium
CN109359060B (en) * 2018-10-24 2023-06-16 三六零科技集团有限公司 Data extraction method, device, computing equipment and computer storage medium
CN111125148A (en) * 2019-12-12 2020-05-08 中化石化销售有限公司 Paging query method and device for database
CN111125148B (en) * 2019-12-12 2023-07-07 中化石化销售有限公司 Paging query method and device for database
CN112667662A (en) * 2020-12-25 2021-04-16 银盛支付服务股份有限公司 Common method for analyzing sql and nosql based on json key values
CN114039970A (en) * 2021-11-11 2022-02-11 北京沃东天骏信息技术有限公司 Information downloading method and device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN107045499A (en) 2017-08-15

Similar Documents

Publication Publication Date Title
WO2017133538A1 (en) Method for realizing data query and server
CN111225041B (en) Method and system for realizing delay message queue
CN103353886A (en) Method and system for previewing webpage
CN105677815B (en) A kind of Web page bookmark adding method and terminal
WO2017004921A1 (en) Search result pushing method, device and apparatus, and non-volatile computer storage medium
CN108628890B (en) Data export method and system
CN107992271B (en) Data pre-reading method, device, equipment and computer readable storage medium
CN104537005A (en) Data processing method and device for webpage crawling
CN104881214A (en) Reader and page turning method thereof
CN107784085B (en) Data list exporting method and terminal thereof
CN113132267B (en) Distributed system, data aggregation method and computer readable storage medium
CA3166090A1 (en) Method and apparatus for pushing subscription data in internet of things, device and storage medium thereof
CN106257449A (en) A kind of information determines method and apparatus
US10599195B2 (en) Method and apparatus for controlling hot plug operation of CPU in mobile terminal
WO2015120691A1 (en) Service concurrent processing method for user terminal and user terminal
US20230259568A1 (en) Webpage history display method and apparatus, and storage medium
CN107517273B (en) Data migration method, system, computer readable storage medium and server
CN116361106A (en) Log processing method and device, electronic equipment and storage medium
CN110827108A (en) Information searching method, searching request control method and system
US20230195352A1 (en) Method for diluting cache space, and device and medium
CN114741266A (en) Page white screen duration determining method and device, electronic equipment and storage medium
CN106209737B (en) Control the method and apparatus that remote service calls frequency
CN108966160B (en) Short message processing method and device and computer readable storage medium
US9582368B2 (en) Method and apparatus for text input protection
CN109558088B (en) Compression method, system, equipment and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17746858

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17746858

Country of ref document: EP

Kind code of ref document: A1