Skip to content

Commit 3e56072

Browse files
meili-bors[bot]Alireza Baloochi
and
Alireza Baloochi
authored
Merge #653
653: Add `usedDatabaseSize` to stats r=curquiza a=Alirexaa # Pull Request ## Related issue Fixes #648 ## What does this PR do? This pull request includes an update to the `ClientStats` struct in the `src/client.rs` file to add a new field for tracking the used database size. * [`src/client.rs`](diffhunk://#diff-7f93c4e263c4e9ec748f804c7fd04a3b2fde86ffd741fb5516d67e1097bae4c1R1122): Added a new field `used_database_size` to the `ClientStats` struct to track the used size of the database. ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: Alireza Baloochi <[email protected]>
2 parents 316f9f7 + f166b71 commit 3e56072

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/client.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,7 @@ impl<Http: HttpClient> Client<Http> {
11191119
#[serde(rename_all = "camelCase")]
11201120
pub struct ClientStats {
11211121
pub database_size: usize,
1122+
pub used_database_size: usize,
11221123
#[serde(with = "time::serde::rfc3339::option")]
11231124
pub last_update: Option<OffsetDateTime>,
11241125
pub indexes: HashMap<String, IndexStats>,

0 commit comments

Comments
 (0)