Improved MySQL index handling on radius lookups (fixes #599)
This commit is contained in:
parent
d2bffb2103
commit
1cf940e201
1 changed files with 1 additions and 1 deletions
|
|
@ -705,7 +705,7 @@ public class Lookup extends Queue {
|
||||||
index = "USE INDEX(wid) IGNORE INDEX(type,user) ";
|
index = "USE INDEX(wid) IGNORE INDEX(type,user) ";
|
||||||
}
|
}
|
||||||
if ((restrictWorld && (users.length() > 0 || includeBlock.length() > 0 || includeEntity.length() > 0))) {
|
if ((restrictWorld && (users.length() > 0 || includeBlock.length() > 0 || includeEntity.length() > 0))) {
|
||||||
index = "";
|
index = "IGNORE INDEX(PRIMARY) ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue