mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 09:22:31 -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(
|
joins += "inner join mt mt{} on {} = {} ".format(
|
||||||
mt_ctr, mt_keycmp, mt_keycmp2
|
mt_ctr, mt_keycmp, mt_keycmp2
|
||||||
)
|
)
|
||||||
|
mt_keycmp = mt_keycmp2
|
||||||
if v == "tags":
|
if v == "tags":
|
||||||
v = "mt{0}.v".format(mt_ctr)
|
v = "mt{0}.v".format(mt_ctr)
|
||||||
else:
|
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:
|
else:
|
||||||
raise Pebkac(400, "invalid key [" + v + "]")
|
raise Pebkac(400, "invalid key [" + v + "]")
|
||||||
|
|
Loading…
Reference in a new issue