{"action":"created","issue":{"url":"https://api.github.com/repos/mapproxy/mapproxy/issues/198","labels_url":"https://api.github.com/repos/mapproxy/mapproxy/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/mapproxy/mapproxy/issues/198/comments","events_url":"https://api.github.com/repos/mapproxy/mapproxy/issues/198/events","html_url":"https://github.com/mapproxy/mapproxy/pull/198","id":112329652,"number":198,"title":"Fix \"CacheBackendError: cannot query SQLite for more than 333 tiles\"","user":{"login":"DirkThalheim","id":7570459,"avatar_url":"https://avatars.githubusercontent.com/u/7570459?v=3","gravatar_id":"","url":"https://api.github.com/users/DirkThalheim","html_url":"https://github.com/DirkThalheim","followers_url":"https://api.github.com/users/DirkThalheim/followers","following_url":"https://api.github.com/users/DirkThalheim/following{/other_user}","gists_url":"https://api.github.com/users/DirkThalheim/gists{/gist_id}","starred_url":"https://api.github.com/users/DirkThalheim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DirkThalheim/subscriptions","organizations_url":"https://api.github.com/users/DirkThalheim/orgs","repos_url":"https://api.github.com/users/DirkThalheim/repos","events_url":"https://api.github.com/users/DirkThalheim/events{/privacy}","received_events_url":"https://api.github.com/users/DirkThalheim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-20T09:59:23Z","updated_at":"2015-10-20T12:04:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mapproxy/mapproxy/pulls/198","html_url":"https://github.com/mapproxy/mapproxy/pull/198","diff_url":"https://github.com/mapproxy/mapproxy/pull/198.diff","patch_url":"https://github.com/mapproxy/mapproxy/pull/198.patch"},"body":"When using MapProxy with MBTiles/SQLite based caches, large WMS requests can issue a CacheBackendError. The proposed fix will issue multiple SQLite-queries when more than 333 tiles are requested."},"comment":{"url":"https://api.github.com/repos/mapproxy/mapproxy/issues/comments/149544111","html_url":"https://github.com/mapproxy/mapproxy/pull/198#issuecomment-149544111","issue_url":"https://api.github.com/repos/mapproxy/mapproxy/issues/198","id":149544111,"user":{"login":"olt","id":235174,"avatar_url":"https://avatars.githubusercontent.com/u/235174?v=3","gravatar_id":"","url":"https://api.github.com/users/olt","html_url":"https://github.com/olt","followers_url":"https://api.github.com/users/olt/followers","following_url":"https://api.github.com/users/olt/following{/other_user}","gists_url":"https://api.github.com/users/olt/gists{/gist_id}","starred_url":"https://api.github.com/users/olt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olt/subscriptions","organizations_url":"https://api.github.com/users/olt/orgs","repos_url":"https://api.github.com/users/olt/repos","events_url":"https://api.github.com/users/olt/events{/privacy}","received_events_url":"https://api.github.com/users/olt/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T12:04:54Z","updated_at":"2015-10-20T12:04:54Z","body":"Thanks for fixing that limitation!\r\nCan you extend the test by creating >2000 tiles with dummy data (see https://github.com/DirkThalheim/mapproxy/blob/master/mapproxy/test/unit/test_cache_tile.py#L175) and make sure that all tiles are loaded with your patch?\r\n\r\nAlso: The two `if len(coords) > 999 else` conditionals are not necessary, the slice operator always returns a valid list. `while len(coords) > 0:` can be shortened to `while coords:`."}}