Displaying 1 result from an estimated 1 matches for "kwcache".
Did you mean:
wcache
2006 Sep 26
4
Some documents not found
...leUtils.move(''search-index-new'', ''search-index'')
### --- populate_index method ---
def populate_index(index, products)
# get the ids of every product for caching purposes...
ids = products.collect {|p| p.id}
# pre-cache all the keywords for the products
kwcache = {}
Vandelay::Keyword.find_by_sql(["select productId, term from
product_keywords where productId in (?)", ids]).each {|kw|
sym = kw.productId.to_sym
kwcache[sym] = [] if !kwcache[sym]
kwcache[sym] << kw.term
}
# pre-cache all the attribute values for the product...