This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Superset caching not working for metadata #31615
Labels
infra:caching
Infra setup and configuration related to caching
Bug description
this is the superset_config file I used caching on Redis and celery but it still wont work.
http://domain.com/genreateguest token------------------------------------takes 2 sec
https://domain.com/embedded/3d0346ae-8dc0-4776-bf02-d87692a918f1uiConfig=10&show_filters=false&expand_filters=false----------this takes 3sec
https://domain.com/api/v1/dashboard/5/datasets---------------------------this takes 2 sec
ROW_LIMIT = 10000
SECRET_KEY = SUPERSET_SECRET_KEY
FEATURE FlAGS
FEATURE_FLAGS = {
"EMBEDDED_SUPERSET": True,
"TAGGING_SYSTEM": False,
"ENABLE_TEMPLATE_PROCESSING": True,
"HORIZONTAL_FILTER_BAR":True,
"FAB_ADD_SECURITY_API": True,
"DASHBOARD_RBAC":True,
"ALLOW_FULL_CSV_EXPORT":True,
"DRILL_TO_DETAIL":True,
"DASHBOARD_VIRTUALIZATION":False,
"SQL_VALIDATORS_BY_ENGINE": {
'postgresql': 'PostgresSQLValidator'
}
}
class CeleryConfig(object):
broker_url = "redis://localhost:6379/0"
imports = (
"superset.sql_lab",
"superset.tasks.scheduler",
)
result_backend = "redis://localhost:6379/0"
worker_prefetch_multiplier = 10
task_acks_late = True
task_annotations = {
"sql_lab.get_sql_results": {
"rate_limit": "100/s",
},
}
from flask_caching.backends.rediscache import RedisCache
RESULTS_BACKEND = RedisCache(
host='localhost', port=6379, key_prefix='superset_results')
FILTER_STATE_CACHE_CONFIG = {
'CACHE_TYPE': 'RedisCache',
'CACHE_DEFAULT_TIMEOUT': 86400,
'CACHE_KEY_PREFIX': 'superset_filter_cache',
'CACHE_REDIS_URL': 'redis://localhost:6379/0'
}
DATA_CACHE_CONFIG = {
"CACHE_TYPE": "SupersetMetastoreCache",
"CACHE_KEY_PREFIX": "superset_results",
"CACHE_DEFAULT_TIMEOUT": 86400,
}
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.10
Node version
16
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: