You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "cesar-loadsmart (via GitHub)" <gi...@apache.org> on 2023/03/28 14:08:02 UTC

[GitHub] [superset] cesar-loadsmart commented on issue #16528: [welcome page][perf] Slow queries to generate welcome page

cesar-loadsmart commented on issue #16528:
URL: https://github.com/apache/superset/issues/16528#issuecomment-1486964964

   Hi @chathawee, I believe these two indexes can help you:
   
   `CREATE INDEX logs_user_id_dttm_idx ON public.logs USING btree (user_id, dttm)`
   
   and 
   
   `CREATE INDEX logs_user_id_dttm_idx1 ON public.logs USING btree (user_id, dttm) WHERE (((action)::text = ANY ((ARRAY['explore'::character varying, 'dashboard'::character varying])::text[])) AND ((dashboard_id IS NOT NULL) OR (slice_id IS NOT NULL)))`
   
   Please test them and let me know.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org