ryanb / xapit

High level Ruby library for interacting with Xapian, a full text search engine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Memoize wildcard query

ryanb opened this issue · comments

The wildcard query can be somewhat slow and is often performed multiple times per search. To improve performance it is more efficient if this is memoized. Something like:

class Xapit::AbstractQueryParser
  extend ActiveSupport::Memoizable
  memoize :wildcard_query
end

This has a very strong reliance on ActiveSupport which I may not want.

I am closing all issues because I have rewritten Xapit and want to focus on immediate bugs with this new version. If you find this issue still relevant, please comment here or open another issue and I'll take a look at it.