Skip to content

Commit

Permalink
Make get_address_analytics fast
Browse files Browse the repository at this point in the history
  • Loading branch information
grtlr committed Nov 25, 2022
1 parent e6e3e36 commit f997035
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/db/collections/outputs/mod.rs
Expand Up @@ -699,13 +699,10 @@ mod analytics {
} },
doc! { "$group" : {
"_id": "$details.address",
}},
doc! { "$group" : {
} },
doc! { "$project": {
"_id": null,
"address_with_balance_count": { "$sum": 1 }
}},
doc! { "$project": {
"address_with_balance_count": "$address_with_balance_count"
} },
],
None,
Expand Down

0 comments on commit f997035

Please sign in to comment.