Quote:
Originally Posted by machinegunkelly
Unless you are showing 90 per page.... you should not be pulling 90 cams.
if you want 500 rooms... Lets make the math easy cause im a math retard.
So you want 500 rooms... you have 50 per page.
Your home page pull should be limit 50, offset 0
Then you tie your pagination to the room limit.
So page 2 becomes pull Limit 50, offset 50
THe other problem you could be having is you're possibly pulling 500 and storing to database without respecting geo restrictions, which would become nearly impossible to diagnose.
as a secondary hint, any attempt to "cache" the API calls, has caused major issues for me...similar to what we see here... check you caching layer if you have one.
God speed man!
|
Thanks for the input - I am not using pages on the sites - I am using lazy loading and calling 80 at a time and then using offsets and pagination in the api to get the next 80 etc. - That should work but I still get the issue - I will go and sit on the loo for a while and have a good think about it -

...