B
B
BonBon Slick2017-04-13 13:51:38
MySQL
BonBon Slick, 2017-04-13 13:51:38

How to find from where and where the SQL query is called?

There are quite a lot of files as well as code in them. Let's say I'm using a controller (laravel) defined on a page. Okay, let's go into it, but there are a lot of injections and laravel ORM that generates requests on the fly ... I don't understand where the requests come from that cover the server.
Even with logs, this is almost impossible, I have a log, I understand that from a specific file, like. So I commented out 80% of it, I still have a SELECT query with several joins.
How to track in the code where the SQL query came from?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2017-04-13
@BonBonSlick

For ASP.NET MVC I used Stackify Prefix . A rather convenient profiler in the form of a Web solution: you listen to localhost, view HTTP requests to the server in the form of [Controller/Action], and below them, you can also view completed connections/requests to the database. Perhaps you should look for analogues ...?
ps Demo version here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question