Skip to content

Create a fast count method for queries #216

@nielsranosch

Description

@nielsranosch

Hello!

Firstly, thanks for making this plugin, it makes my life much easier.

I noticed that countMessages() in Client.php is a lot faster than fetching all messages and counting them afterwards. However, this is not possible for arbitrary queries, most notably unseen messages. How about a method in Query (or WhereQuery) that returns the number of "selected" messages? Is it possible to create a method that is a little speedier than count($query->get())?

Cheers,
Niels

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions