Improve search speed.

This commit is contained in:
James Cole
2019-02-27 19:08:09 +01:00
parent fe738fd321
commit 39321b320e
6 changed files with 90 additions and 127 deletions

View File

@@ -23,6 +23,7 @@ declare(strict_types=1);
namespace FireflyIII\Support\Search;
use FireflyIII\User;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\Collection;
/**
@@ -46,9 +47,9 @@ interface SearchInterface
public function parseQuery(string $query);
/**
* @return Collection
* @return LengthAwarePaginator
*/
public function searchTransactions(): Collection;
public function searchTransactions(): LengthAwarePaginator;
/**
* @param int $limit