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

Call query multiple times when telescope is enabled #1549

Open
FaisalBudiono opened this issue Nov 21, 2024 · 0 comments
Open

Call query multiple times when telescope is enabled #1549

FaisalBudiono opened this issue Nov 21, 2024 · 0 comments

Comments

@FaisalBudiono
Copy link

FaisalBudiono commented Nov 21, 2024

Telescope Version

5.2.5

Laravel Version

11.32.0

PHP Version

8.3.13

Database Driver & Version

Postgres:16-alpine3.2 (dockerized)

Also tried with Mysql 8.2, the conclusion still the same

Description

When I try to test my API that has auth()->user() method called, it will do "search query" multiple times for some reason. The weird thing is the query is called more than 1000 times and it takes more than 10 second for the request to resolved, If I disable the telescope, the request only took sub 100ms.

See the image below for the snippet.

image

Steps To Reproduce

  1. Install laravel/telescope
  2. Configure telescope in local only (like what being told in the official documentation)
  3. Try hit the API that has auth()->user() on it
  4. The telescope will report that the request has more than 1000 API call
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