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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:15:28+00:00 2026-06-14T14:15:28+00:00

recently inserted a lot of rows into these tables and now the query times

  • 0

recently inserted a lot of rows into these tables and now the query times out:

SELECT * FROM eng
WHERE english IN (SELECT eng FROM `eng-jap`)
ORDER BY lastmodified DESC

table eng-jap has about 25,000 rows, here is some stats on it:

Format          dynamic
Collation       utf8_general_ci
Rows            24,960
Row length ø    316
Row size ø      328 B
Next Autoindex  26,468
Type    Usage
Data    7,724.0 KiB
Index   264.0 KiB
Total   7,988.0 KiB

and for table eng:

Format          dynamic
Collation       utf8_general_ci
Rows            23,691
Row length ø    105
Row size ø      117 B
Next Autoindex  24,771
Type    Usage
Data    2,451.4 KiB
Index   260.0 KiB
Total   2,711.4 KiB

just select * from table gets (Query took 0.0002 sec) for either table

i just cant believe a very simple subquery like this with a couple k’s in each table needs more than the 160 sec timeout i have set, and then times out…

i hope its like a setting in my tables thats causing it. or mysql really cant do a query like this?

  • 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-14T14:15:29+00:00Added an answer on June 14, 2026 at 2:15 pm

    It’s having to cross-reference all the elements from one table with all the elements of the other.

    Perhaps this might work better:

    SELECT `eng`.* FROM `eng`
    JOIN `eng-jap` ON `eng`.`english` = `eng-jap`.`eng`
    ORDER BY `eng`.`lastmodified` DESC
    

    Also make sure you have suitable Indexes defined. This will help speed up the query.

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

Sidebar

Related Questions

Recently our MODx Evolution based website was vulnerable to exploit. Code was inserted into
Recently I have released my app into the US AppStore. Now I Planed for
Recently I am working into the ability of translating a PHP web application from
I've recently written a custom API for inserting data into my database from multiple
I recently setup a drupal page and inserted content. After logging out I saw
Recently i found an issue with the styling of a text-area. When i inserted
I have a stack of code snippets imported into Visual Studio. Just recently, they
Recently I had cause to compare Blowfish algorithms. I was comparing outputs from DI
Recently, I ran into a problem with my application: the size of the JSON
I just recently started learning Ember (so far with a lot of trouble). I'm

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.