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 9245747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:20:04+00:00 2026-06-18T09:20:04+00:00

I have this really weird behaviour in my rails application. All find queries are

  • 0

I have this really weird behaviour in my rails application. All find queries are run double.
I’ve verified this by logging the queries both on the ap side and on the DB side.
I’ve only tested it in development mode though.

I’ve added logging to the methods to see if the methods are called multiple times, but that wasn’t the case.

All saves run exactly once, so there are no problems there. Only the problem that page loads will be increasingly slower the more data there is in the DB since it queries all data twice.

I don’t even know which parts of the code I should paste, since I have no clue where this could be coming from.

I’m using mongoid (3.0.13), rails (3.1.3)

Here’s the link to github for the whole source https://github.com/deiga/new-Roydon/tree/develop

  • 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-06-18T09:20:05+00:00Added an answer on June 18, 2026 at 9:20 am

    You’ve probably resolved it by now, but I had the same issue and the reason was the bullet gem, which reruns every Mongoid find for the purpose of measuring the performance.

    I can see that you also have it included in your Gemfile, so that’s probably it.

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

Sidebar

Related Questions

In chrome (and safari of course), I have this really weird behaviour that I
Ok, this is a really weird one. I have an MPI program, where each
this seems to be weird but it really happened. I have this code working
I`m really confused here about this weird behavior! The thing is, I have a
I have this really weird bug. When I scroll down my table view, down
I have this really weird problem with my MySQL table. After some time a
I have this really weird problem in my code (.Net Framework 3.5). So, in
I've faced a really weird behaviour of textarea today. Have been bugfixing it for
This is really weird.. I have the following redirect in a file: header('Location: http://google.com');
to me this is really weird, i have this menu: <!DOCTYPE html> <html> <head>

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.