When possible, use the ๐ณ๐ฐ๐ด๐ฐ๐ป statement to specify the number of results to return. This helps minimize the amount of CPU and RAM used to find the relevant records.
The performance improvement will be even greater if the records contain many large fields.
When selecting, if you only want to display the first 25 records of a table containing peopleโs first and last names, replace the following:
๐๐๐๐๐พ๐ ๐๐๐ง๐จ๐ฉ_๐ฃ๐๐ข๐, ๐ก๐๐จ๐ฉ_๐ฃ๐๐ข๐ ๐๐๐๐ ๐ฅ๐๐ค๐ฅ๐ก๐
with:
๐๐๐๐๐พ๐ ๐๐๐ง๐จ๐ฉ_๐ฃ๐๐ข๐, ๐ก๐๐จ๐ฉ_๐ฃ๐๐ข๐ ๐๐๐๐ ๐ฅ๐๐ค๐ฅ๐ก๐ ๐๐๐๐๐ 0,25
With SpringBoot/JPA, do pagination ๐ https://lnkd.in/ecz8kkAG
#greenit #developer #resultsetlimit