[Cubicweb] What is update_search_mode() for ?

Christophe de Vienne christophe at unlish.com
Tue Jan 27 23:30:55 CET 2015

Hi list,

While tracking where time is spent in a request handling, I discovered

I guess it has to do with searching things, but I am disturbed by 2 things:

- It modify the current session at *each* request handling, meaning
  that even getting a static resource will uselessly access the session,
  which has a cost.

  Could we make CubicWebRequestBase.search_state a property that lazy
  load itself?

  We would then avoid countless useless access to the session data.

- It is a global state, which is bad practice imo.

  How realistic would it be to completely remove it ?



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20150127/7fc18990/attachment-0272.sig>

More information about the Cubicweb mailing list