mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
gain 1000x performance with one weird trick
This commit is contained in:
parent
273ca0c8da
commit
b1f2c4e70d
|
@ -126,10 +126,11 @@ class U2idx(object):
|
|||
joins += "inner join mt mt{} on {} = {} ".format(
|
||||
mt_ctr, mt_keycmp, mt_keycmp2
|
||||
)
|
||||
mt_keycmp = mt_keycmp2
|
||||
if v == "tags":
|
||||
v = "mt{0}.v".format(mt_ctr)
|
||||
else:
|
||||
v = "mt{0}.k = '{1}' and mt{0}.v".format(mt_ctr, v)
|
||||
v = "+mt{0}.k = '{1}' and mt{0}.v".format(mt_ctr, v)
|
||||
|
||||
else:
|
||||
raise Pebkac(400, "invalid key [" + v + "]")
|
||||
|
|
Loading…
Reference in a new issue