chore: add some more debug logs (#1979)

P99 is usually <100ms which is excellent, but occasionally has big
spikes to 1000ms. This is only on the record index.

I don't want this to get out of hand. I've ran a few test queries and
they all complete very fast, and are purely index scans.

Hopefully this helps figure out if it's a specific user with tonnes of
stores or something? Otherwise there could be something up with my db.

I should probably also figure out some proper log levels or tracing lol.
This commit is contained in:
Ellie Huxtable 2024-04-25 10:42:04 +01:00 committed by GitHub
parent d020c815c1
commit fc5522f45e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,6 +70,8 @@ pub async fn index<DB: Database>(
}
};
tracing::debug!(user = user.username, "record index request");
Ok(Json(record_index))
}