Skip to content
New issue

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

Stats Command #805

Open
IanMitchell opened this issue Apr 8, 2021 · 1 comment
Open

Stats Command #805

IanMitchell opened this issue Apr 8, 2021 · 1 comment
Labels
Feature Related to Aquarius commands, including new features and requests

Comments

@IanMitchell
Copy link
Owner

Run this query and output results:

SELECT
	category,
	COUNT(category) AS value_occurrence
FROM
	analytic_events
WHERE
	context ->> 'userId' = '176793948025520128'
GROUP BY
	category
ORDER BY
	value_occurrence DESC
LIMIT 10;
@IanMitchell IanMitchell added the Feature Related to Aquarius commands, including new features and requests label Apr 8, 2021
@IanMitchell
Copy link
Owner Author

Per Sindalf, this should be added:

CREATE INDEX context_userid ON analytic_events USING btree ((context -> 'userId'));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Related to Aquarius commands, including new features and requests
Projects
None yet
Development

No branches or pull requests

1 participant