Bug #10075 "Incorrect key file for table ..." error with large query
| Submitted: | 21 Apr 2005 21:29 | Modified: | 5 Oct 2005 15:39 |
|---|---|---|---|
| Reporter: | [ name withheld ] (Basic Quality Contributor) | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server | Severity: | S2 (Serious) |
| Version: | 5.0.4 | OS: | Windows (Windows 2000) |
| Assigned to: | Alexey Botchkov | CPU Architecture: | Any |
[21 Apr 2005 21:29]
[ name withheld ]
[22 Apr 2005 0:16]
Jorge del Conde
Thanks for your bug report !
[5 Oct 2005 15:39]
Mark Matthews
> FROM zip_codes c, zip_codes zc > -- where zc.zip_code = 35004 > ORDER BY distance ASC LIMIT 1; Did you really want to comment out the WHERE clause? What's basically happening here is that you've created a self-join cartesian product, and because of the ORDER BY clause, the server has to materialize the entire result into a temporary table before applying the "LIMIT 1". Your server is running out of diskspace where MySQL stores temporary tables, see http://dev.mysql.com/doc/mysql/en/temporary-files.html for information on how to configure the server to use a location with more space.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.