optimisation index partiels sur what
This commit is contained in:
parent
ee082a91de
commit
604a079368
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ class EventResource(BaseEvent):
|
||||||
|
|
||||||
if 'what' in req.params:
|
if 'what' in req.params:
|
||||||
# limit search based on "what"
|
# limit search based on "what"
|
||||||
event_what = cur.mogrify(" AND events_what LIKE %s ", (req.params['what']+"%",)).decode("utf-8")
|
event_what = cur.mogrify(" AND events_what LIKE %s AND events_what LIKE %s ", (req.params['what'][:4]+"%",req.params['what']+"%")).decode("utf-8")
|
||||||
else:
|
else:
|
||||||
event_what = ""
|
event_what = ""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue