Adarsh D
adarshd.bsky.social
Adarsh D
@adarshd.bsky.social
Co founder: linkhq.co and digievolabs.com
Python | Backend | APIs
Blog: https://blog.adarshd.dev

- The implementation overfetches an object and uses that to determine if next page is present.

𝚍𝚎𝚏 𝚙𝚊𝚐𝚎(𝚜𝚎𝚕𝚏, 𝚗𝚞𝚖𝚋𝚎𝚛):
...
𝚋𝚘𝚝𝚝𝚘𝚖 = (𝚗𝚞𝚖𝚋𝚎𝚛 - 𝟷) * 𝚜𝚎𝚕𝚏.𝚙𝚎𝚛_𝚙𝚊𝚐𝚎
𝚝𝚘𝚙 = 𝚋𝚘𝚝𝚝𝚘𝚖 + 𝚜𝚎𝚕𝚏.𝚙𝚎𝚛_𝚙𝚊𝚐𝚎 + 𝟷
...

- Can also be applied to ORMS other than Django for optimizing performance.

(2/2)
November 29, 2024 at 5:14 AM
We need more of these Python in production posts! Waiting for the next part..
November 26, 2024 at 4:03 PM
pyzzles | python puzzles
weird python puzzles, tdd style
pyzzles.gptengineer.run
November 21, 2024 at 1:00 PM
First comment
December 28, 2023 at 5:58 PM