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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:40:27+00:00 2026-05-30T23:40:27+00:00

A table community as id: int, name: varchar . Another table category_people as community_id:

  • 0

A table community as id: int, name: varchar. Another table category_people as community_id: int, person_id: int. A JOIN with LIMIT query could be

SELECT b.user_id, group_concat(a.name SEPARATOR ',') as groups
FROM communities a
JOIN communities_users b
ON a.id = b.community_id
GROUP BY b.user_id
LIMIT 1000
OFFSET 2000;

In this query, will MySQL perform any internal optimizations and (a) do the limit,offset part first and join later or (b) perform a join on full table and then fetch the limit, offset window?

  • 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-30T23:40:29+00:00Added an answer on May 30, 2026 at 11:40 pm

    Referencing the MySQL 5.6 Manual on LIMIT Optimization, it appears to be (a):

    “As soon as MySQL has sent the required number of rows to the client, it aborts the query unless you are using SQL_CALC_FOUND_ROWS.”

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

Sidebar

Related Questions

I have two tables table COMMUNITY id, name, etc. table PROPERTY id, community_id, type,
TABLE users_community_relations list_id int user_id int dest_user_id int 1 10 20 2 10 24
I have created a join for an application I am working on. SELECT community.id,
table { id: long name: string } 1235 Fred 1902 Trever 5123 George 6467
Table structure- int PrimaryKey DateTime Date int Price What I would like to do
table user: |id|name|employee_priority_id|user_priority_id| table priority: |id|name| As you can see, there are two foreign
table 1(ob): name,address table 2(address): dname,addr I need to update ob.address with address.addr when
table id | word SELECT id FROM table WHERE word = hello OR word
im trying to delete a foreign key with the following syntax (5.0.45-community-nt): alter table
Is it better to query large table (> 1.5 million rows) 3 times or

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.