Inquiring method of information flows of social network site
A query method and technology of social networking sites, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve the problems of increasing database server load, increasing response time, etc., to reduce steps, reduce response time, and reduce load Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
Embodiment 1
[0021] A query method for information flow on social networking sites: firstly set the number a of data items displayed on a page in the database server, and then perform a query in the database according to a given condition according to a+1 items to obtain the query results, and then use the query results The number of entries is used to determine whether there is a next page, and finally the query results are displayed to reduce the number of queries to the database.
[0022] Use the number of query results to determine whether there is a next page. Specifically, compare the number of query results with the number a of data displayed on a page. If the number of query results is less than a+1, there will be no next page. If the number of query results is equal to a+1, there will be a next page.
[0023] In the database server, first set the number a of data items displayed on a page, and then perform a query in the database according to the given conditions according to a+1 ...
Embodiment 2
[0036] When the number a of displayed data on a page is 20, and the number of final query results is 19 according to given conditions, the invention is used for query.
[0037] A. In the database server, first set the number of data items displayed on a page a=20;
[0038] B. According to the given conditions, query in the database according to a+1=21 items, and get the query result b;
[0039] C. Use the count module to count the number c of the results in the query result b, c=19
[0040] D. Judging that the number c=19 is less than or equal to a+1=21, because c=19 is less than a+1=21, go to step E;
[0041] E. Display the query result b, and the query is completed.
[0042] When using the existing method to query, it is necessary to perform two steps of querying the database. For the first time, use the count module on the database server to query the total number of information streams to be displayed to determine whether there is a next page. Secondary query for the da...
Embodiment 3
[0045] When the number a of displayed data on a page is 20 and the number of final query results is 23, the invention is used for querying.
[0046] A. In the database server, first set the number of data items displayed on a page a=20;
[0047] B. According to the given conditions, query in the database according to a+1=21 items, and get the query result b;
[0048] C. Use the count module to count the number c of the results in the query result b, c=21;
[0049] D. Judging that the number c=19 is less than or equal to a+1=21, because c=21 is equal to a+1=21, go to step F;
[0050] F. Use the array_slice module to display the first a=20 pieces of data in the query result b, and then enter step G;
[0051] G. According to the given conditions, press a+1=21 to query the data in the database except for the already displayed data, and get the query result g;
[0052] H. Use the count module to count the number h of the results in the query result g, h=3;
[0053] I. Judging t...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com