#138: Introduce timeout mechanism for long queries
------------------------+---------------------
  Reporter:  lmarian    |      Owner:  lmarian
      Type:  task       |     Status:  closed
  Priority:  major      |  Milestone:  v1.0
 Component:  WebSearch  |    Version:
Resolution:  fixed      |   Keywords:  NEWS
------------------------+---------------------
Changes (by Ludmila Marian <ludmila.marian@…>):

 * status:  in_merge => closed
 * resolution:   => fixed


Comment:

 In [6dd4c720e12bdec82e31e3d6956131577dd846e7]:
 {{{
 #!CommitTicketReference repository=""
 revision="6dd4c720e12bdec82e31e3d6956131577dd846e7"
 WebSearch: add limit option for wildcard queries

 * Add CGF_WEBSEARCH_WILDCARD_LIMIT to invenio.conf that will optionally
 limit
   the number of terms a wildcard query would operate on.  (closes #138)

 * Implemented run_sql_with_limit() with the scope of limiting some queries
 that
   might take a long time to execute; to be used for the wildcard queries.

 * All the search API supports now a wl (wilcard limit) argument;
   in case it is not set, the high level API uses as default the
   CFG_WEBSEARCH_WILDCARD_LIMIT value and the middle and low level API
   use as default wl = 0 (no limit).

 * wl can be set also in the search URL. The only users that can set higher
   values for wl then CGF_WEBSEARCH_WILDCARD_LIMIT in the search URL are
 the
   ones connected with the 'runbibedit' role.  Other users do not have
   the right to set a higher wl value (if they try, they will get the exact
 same
   results as when wl = CFG_WEBSEARCH_WILDCARD_LIMIT).

 * Add regression tests for this feature.
 }}}

-- 
Ticket URL: </ticket/138#comment:4>
Invenio <http://invenio-software.org>

Reply via email to