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

use /usage/queries endpoint instead of obsolete /stats endpoint 🎊 #931

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sivukhin
Copy link
Contributor

Let's use modern /usage/queries endpoint for query stats instead of obsolete /stats endpoint (which do not work for DBs in the AWS).

We will change logic here and now show statistics about queries executed in the DB during last 1 day

$> turso db inspect just-little --queries
QUERY                                  ROWS WRITTEN  ROWS READ  
SELECT * FROM test                     0             87         
INSERT INTO test VALUES (1), (2), (3)  3             0          
SELECT * FROM sqlite_master            0             16         
SELECT 1                               0             0          

@sivukhin sivukhin requested a review from notrab December 26, 2024 14:51
@sivukhin sivukhin changed the title use /usage/queries endpoint instead of obsolete /stats endpoint use /usage/queries endpoint instead of obsolete /stats endpoint 🎊 Dec 26, 2024
@haaawk
Copy link
Collaborator

haaawk commented Jan 6, 2025

So is this a change of behaviour? Did we previously show stats since the db creation?

@haaawk
Copy link
Collaborator

haaawk commented Jan 6, 2025

LGTM in general

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants