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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:13:44+00:00 2026-05-26T01:13:44+00:00

All, I’m trying to resolve some performance problems and I’ve got as far as

  • 0

All,

I’m trying to resolve some performance problems and I’ve got as far as analyzing this query:

EXPLAIN SELECT entry.entry_key, entry.node, entry.object_type, entry.object_id,
               entry.copy_id, entry.seq_number, entry.root_seq_number, entry.first_error,
               entry.last_error, entry.error_count, entry.error_id, entry.error_code,
               entry.status, entry.type, entry.sense, entry.reviewed 
       FROM eventlog me  JOIN eventlog_entry eventlog_entries 
            ON eventlog_entries.eventlog_key = me.eventlog_key  JOIN entry entry 
            ON entry.entry_key = eventlog_entries.entry_key 
       WHERE ( ( ( first_error >= '0' AND last_error <= '2147483640' ) AND 
                   me.eventlog_key = '1' ) ) 
       GROUP BY entry.entry_key\G
*************************** 1. row ***************************
           id: 1
  select_type: SIMPLE
        table: me
         type: const
possible_keys: PRIMARY
          key: PRIMARY
      key_len: 8
          ref: const
         rows: 1
        Extra: Using index; Using temporary; Using filesort
*************************** 2. row ***************************
           id: 1
  select_type: SIMPLE
        table: eventlog_entries
         type: ref
possible_keys: eventlog_entry_idx_entry_key,eventlog_entry_idx_eventlog_key
          key: eventlog_entry_idx_eventlog_key
      key_len: 8
          ref: const
         rows: 1
        Extra:
*************************** 3. row ***************************
           id: 1
  select_type: SIMPLE
        table: entry
         type: eq_ref
possible_keys: PRIMARY
          key: PRIMARY
      key_len: 8
          ref: eventlog.eventlog_entries.entry_key
         rows: 1
        Extra: Using where
3 rows in set (0.00 sec)

The original query did have an ORDER BY in it, but I removed that. However, EXPLAIN is still reporting a filesort and I can’t figure out why. Has the MySQL optimizer cached the optimization somewhere? Or is filesort used for some other reason too?

  • 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-26T01:13:45+00:00Added an answer on May 26, 2026 at 1:13 am

    MySQL will sort by default whenever you do a GROUP BY. To avoid this, just add ORDER BY NULL.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
All, I am trying to create a table to receive user inputs (UGC). This
All, I'm using wordpress with this and for some reason the eventDrop stopped working.
All I want is to update an ListViewItem's text whithout seeing any flickering. This
All, I am running into an issue using JTextArea and JScrollPane. For some reason
All, I am trying to ensure that a file I have open with BufferedReader
All i need is a simple explanation on how does this function work I
All, See the code below: function menu() { this.menuitem=[]; this.submenu=[]; this.menuitem[0] = $('div#sivname1'); this.menuitem[1]
All, I have some script tags that are not working in Wordpress. If I
All, Say I have the following bit of code: select: function(start, end, allDay) {

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.