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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:41:09+00:00 2026-06-05T22:41:09+00:00

I am using Ruby on Rails 3.2.2 and MySQL. From the logger I know

  • 0

I am using Ruby on Rails 3.2.2 and MySQL. From the logger I know that my system is running an SQL query like the following:

SELECT `articles`.* FROM `articles` WHERE (articles IN (1,2,...,<A_LOT_OF_ID_VALUES>))

From the source code I know that the <A_LOT_OF_ID_VALUES> value growns as the number of rows / records present in the related articles database table… should I be aware of that “directly proportional growing”?

Bonus: “Practically” speaking, should I be aware of too “long” text outputs (for example, text outputs as like the previously mentioned “1,2,...,100,101,...,<A_LOT_OF_ID_VALUES>” string) in log files?

  • 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-05T22:41:11+00:00Added an answer on June 5, 2026 at 10:41 pm

    Yes you shoud be aware of growing list of ids ….. it is ok for a bit, but once you go to hundreds or thousands then the query will get really slow.
    The alternate is to use a subquery that selects the ids that you require.

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

Sidebar

Related Questions

I'm using Rails 3.0.3, and I have changed the mysql adapter from ruby-mysql to
I have a rails app that uses the following, rails 3.1, ruby 1.9.2, mysql,
I have a deployment using: rails 2.3.2 ruby 1.8.7 mysql db and 3 mongrel
I'm using ruby on rails 2.3.2 and also using the acts_as_taggable_on puglin. That generated
I am using ruby on rails with a MySQL backend. I have a table
I am trying to run ruby on rails code that I got from github
I am using Ruby on Rails 3.2.2 and MySQL. I have a method (an
I am stating out learning Ruby on Rails. For that I am using Agile
The Setup I have a Ruby on Rails application that I manage from a
Im using ruby on rails with a mysql db in the back. I realized,

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.