3 ms·
If http://example.org/images?image_id=12121 http://example.org/images?image_id=7272 contain the same images, chances are very high that other query par
by NicoJuicy 13y ago
If
http://example.org/images?image_id=12121
http://example.org/images?image_id=7272
contain the same images, chances are very high that other query parameters will be the same.
If they are different, chances are very high that other query parameters are also different.
Want to up your chances, then instead of only 2 requests, raise the bar to 10 different query parameter checks and add some additional db values (like CountFetch:int,sameUntillCurrentFetch:bool)
As soon as sameUntillCurrentFetch = false, then you request all images in the future.
If CountFetch = 5 and sameUntillCurrentFetch = true, then queryDiff = false.
It's kinda weird my answer was downvoted, any better solutions to avoid the stated problem then?