You are here: Foswiki>Tasks Web>Item10276 (02 Jan 2015, GeorgeClark)Edit Attach

Item10276: regex search for /.*/ produces high load un-necessarily

pencil
Priority: Normal
Current State: Being Worked On
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: MongoDBPlugin
Branches:
Reported By: SvenDowideit
Waiting For: Main.SvenDowideit
Last Change By: GeorgeClark
in MongoDBPlugin, a legacy search for all topics makes alot of work for a nop.

eg

Fri Jan 21 14:28:14 [conn1] query foswiki.$cmd ntoreturn:1 command: { count: "current", query: { orderby: { TOPICINFO.date: -1 }, query: { _web: "Sandbox", _raw_text: /.*/i } } } reslen:64 11128ms

while I'm going to work around it in the MongoDBPlugin impl, i wonder if the Query and Search Parsers shouldn't further simplify - reducing the work search algo implementors need to do.

-- SvenDowideit - 21 Jan 2011

 
Topic revision: r5 - 02 Jan 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy