Branch: Tag:

2001-09-25

2001-09-25 22:02:38 by Johan Schön <js@opera.com>

Added a query-local blob cache with 10 entries, which is populated by reading 10 blob packets at once if possible. This reduces i/o time wait by as much as 50%

Rev: lib/modules/Search.pmod/Database.pmod/Base.pmod:1.18
Rev: lib/modules/Search.pmod/Database.pmod/MySQL.pike:1.69
Rev: lib/modules/Search.pmod/Indexer.pmod:1.16
Rev: lib/modules/Search.pmod/Query.pmod:1.23

1:   // This file is part of Roxen Search   // Copyright © 2001 Roxen IS. All rights reserved.   // - // $Id: Indexer.pmod,v 1.15 2001/08/21 14:21:28 js Exp $ + // $Id: Indexer.pmod,v 1.16 2001/09/25 22:02:37 js Exp $      //!   void index_document(Search.Database.Base db,    string|Standards.URI uri,    void|string language, -  mapping fields, -  mapping uri_anchors) +  mapping fields)   {    db->remove_document( uri, language );   
49:    Search.Filter.Base.Output filteroutput=    filter->filter(uri, data, content_type,    headers, default_charset); -  index_document(db, uri, language, filteroutput->fields, filteroutput->uri_anchors); +  index_document(db, uri, language, filteroutput->fields);    return filteroutput->links;   }