Follow-up from "AI Impact: Add GraphQL API for AI Acceptance Rate"
The following discussion from !157035 (merged) should be addressed:
-
@pshutsin started a discussion: (+3 comments) @ahegyi I wonder if we can remove daily usages and reuse this MV? By expanding this MV for all events we can then do
SELECT max(date), user_id AS last_used_at FROM code_suggestion_daily_events WHERE event = 1 GROUP BY user_id
to get last usage for event 1.I assume that the query will not scan entire table because we have all fields in
ORDER BY
key. Is it correct?