The invention discloses a method for interval and
paging query of a time-intensive B / S (Browser /
Server) with large data size. The method comprises the steps as follows: inputting an initial query condition by a user through the browser end to request one page or one interval; querying the interval for the first time, obtaining all time points of the interval at the
server end, obtaining the total pages of the interval according to the number of the time points and sequentially writing
start time and end time of each page into a cache file in an appending way, obtaining data of the page according to the
start time and the end time of the first page, and returning the total pages of the interval and the data of the first page to a front
desk; for the queried interval, only reading out the
start time and the end time of the page to be queried from the cache file, querying the data of the page from a
database according to the
time condition and returning; and querying the
database by dividing a table and combining by the time points to obtain a final result. According to the method, the result sets in each query are reduced, the
response time for
database query is shortened, and little memory space of a
client and an
application server is occupied.