Last modified: 2014-05-30 20:47:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T62007, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60007 - CirrusSearch: Lower cache time for suggestions
CirrusSearch: Lower cache time for suggestions
Status: ASSIGNED
Product: MediaWiki extensions
Classification: Unclassified
CirrusSearch (Other open bugs)
unspecified
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Chad H.
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-13 16:52 UTC by Nik Everett
Modified: 2014-05-30 20:47 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nik Everett 2014-01-13 16:52:05 UTC
We say that one of Cirrus's improvements is that it makes things near real time.  We don't really deliver on that promise on prefix searches because they are cached for 25 hours.
Comment 1 Chad H. 2014-01-13 16:57:25 UTC
This should just be a config change. We'll want to lower $wgSearchSuggestCacheExpiry on wikis that have Cirrus.
Comment 2 Nik Everett 2014-01-13 17:04:35 UTC
From a talk page:

I'm reasonably sure what you are seeing is the 24 hour cache time on prefix searches.  I saw that a few months ago and thought it would be problematic but then forgot about it.  I've filed a [bz:60007|bug] for it so I won't forget it again.  I can't promise anything on this soon because prefix search really is slower then I'd like.  We have an inflight fix that cuts the time for short prefixes on large wikis more than in half but it still isn't fast enough.  I'm told there are features in the Elasticsearch that should let me cut that by an order of magnitude but they are still labelled "experimental".  At some point I'll have a look at that though.

Another option, while I'm thinking about it, is to make the cache time relative to the number of characters being prefix searched and the size of the wiki.  Only wikis with tons of titles really need much caching.  Also it doesn't do too much good to cache prefixes longer than a few characters I think.
Comment 3 Gerrit Notification Bot 2014-02-10 21:26:48 UTC
Change 112577 had a related patch set uploaded by Chad:
Lower search cache expiry to 12 hours on all wikis

https://gerrit.wikimedia.org/r/112577
Comment 4 Gerrit Notification Bot 2014-02-13 22:22:13 UTC
Change 112577 merged by jenkins-bot:
Lower search cache expiry to 12 hours on all wikis

https://gerrit.wikimedia.org/r/112577
Comment 5 Chad H. 2014-02-13 22:24:38 UTC
Down to 12 hours. Better, but not best.
Comment 6 Chad H. 2014-05-30 20:47:12 UTC
Already at 6. Lowering to 3 with Gerrit change #136449.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links