We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance improvement.
The text was updated successfully, but these errors were encountered:
I don't have time to create a PR for this right now, but sharing the pieces that I have added: in data_utils.py:
data_utils.py
In the section of module imports, add:
from tiled.client.cache import Cache from tiled.client import show_logs
In the else statement to reach a remote Tiled server, add:
cache = Cache( capacity=500_000_000, # bytes max_item_size=500_000, # bytes filepath="data/tiled_cache.db", readonly=False, )
Add the cache to the client initaliztation:
client = from_uri(TILED_URI, api_key=API_KEY, cache=cache, timeout=httpx.Timeout(60.0))
To additionally show statistics on caching and timing of server requests etc, add:
# Show Tiled logs if os.getenv("TILED_LOGS", False): show_logs()
Sorry, something went wrong.
Note: How can we configure the timeout?
Wiebke
No branches or pull requests
Performance improvement.
The text was updated successfully, but these errors were encountered: