Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6120241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:38:46+00:00 2026-05-23T15:38:46+00:00

My client wants corresponding sql queries of all ActiveRecord query which using in the

  • 0

My client wants corresponding sql queries of all ActiveRecord query which using in the application.I can able to get most from the serVer log.But queries with relations are not showing in the server or development.log file.
for eg: Student.first returning SELECT * from students limit 1
but Student.first.school is not returning SELECT * from schools where id IN ......

Is there any way??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:38:47+00:00Added an answer on May 23, 2026 at 3:38 pm

    Enabling the full query log (this requires restarting the MySQL deamon) will start writing all queries in that log file. It’s usually not enabled because the file gets pretty big quickly. But you can have it on for a few hours so you can have all queries logged.

    How to enable the General Query Log (or full query log): SO question: how-do-i-log-just-the-raw-queries-in-mysql or at: MySQL docs: General Query Log

    You can select where the log is saved, either to a file or to a table:

    MySQL docs: Selecting General Query and Slow Query Log Output Destinations

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A client wants me to do some maintenance work to a VB 6.0 application
Our client wants to support both SQL Server and Oracle in the next project.
My client wants to show a heat map of all the countries from where
Client wants to edit DotNetNuke skin and he is not a programmer, so I'm
My client wants to send email announcements and reports for customers. Now. The python-side
A client wants to ensure that I cannot read sensitive data from their site,
A client wants a multilingual site with a CMS. Is there a Ruby on
A client wants to add functionality to a system that will distribute large files(~700mb)
A client wants to use Google Apps for employees but they want to offer
My client wants me to make a plugin that intercepts the banner on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.