Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many queries #73

Open
armen9494 opened this issue Feb 23, 2022 · 0 comments
Open

Too many queries #73

armen9494 opened this issue Feb 23, 2022 · 0 comments

Comments

@armen9494
Copy link

Thank you for a very useful package, but it has one issue - it's sending too many queries. Every time you want to make an update, it's making one more query to get an object from database.
Below is a code example and the result

public function index()
{
    $this->prepareStatus();

    $max = 20;
    $this->setProgressMax($max);

    for ($i = 0; $i <= $max; $i += 1) {
        $this->setProgressNow($i);
    }

    $this->setOutput(['total' => $max, 'other' => 'parameter']);
}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant