Where will the database queries recide
Added by Deepak S over 14 years ago
Hello All,
I'm a newbee to this redmine. I have a couple of questions regarding that. I have asked to get a report from the issues screen.
My understanding: As any other web application there will be some controller files where the queries are written to fetch data from the database to display on the UI. I want that location.
I have redmine installations, ruby installation everyting on a server but i dont know where to look for the queries.
Lets consider one example: User clicks the issue tab/button on the RedMine application. The request is sent to some server and the server fires a query to the database to get all the issues. I want to look at that query. in which files the queries will recide. Please guide me.
Thanks in advance
Deepak
Replies (1)
RE: Where will the database queries recide
-
Added by Felix Schäfer over 14 years ago
Rails uses an ORM for queries to the database, and all queries are generated dynamically. You might be able to see the queries either in your SQL server log if you make logging more verbose, or in the rails logs if you crank up the verbosity.
Be aware though that this is a rails problem, not a redmine problem, so you might have a better chance asking in a rails forum.