fix transaction list in admin and speed up external count

This commit is contained in:
Thomas Bloor 2019-09-09 16:42:49 +01:00
parent 962cf972da
commit d484b342df
No known key found for this signature in database
GPG key ID: 4657C7EBE42CC5CC
2 changed files with 6 additions and 5 deletions

View file

@ -18,8 +18,8 @@ sub index {
{},
{
select => [
{ count => 'id', '-as' => 'count' },
{ sum => 'value', '-as' => 'sum_value' },
{ count => 'me.value', '-as' => 'count' },
{ sum => 'me.value', '-as' => 'sum_value' },
'quantised_weeks',
],
group_by => 'quantised_weeks',