It is generally faster to query 100 items at a time. Mainly to explain the sql statement, plan the query method, and the cost of index searching, etc. In addition, the difference between queries that do not use indexes and scan the table is more obvious. One scans from beginning to end to find all the data, and the other scans 100 times each time. Scan from the beginning...
It is generally faster to query 100 items at a time. Mainly to explain the sql statement, plan the query method, and the cost of index searching, etc. In addition, the difference between queries that do not use indexes and scan the table is more obvious. One scans from beginning to end to find all the data, and the other scans 100 times each time. Scan from the beginning...