[Xapian-tickets] [Xapian] #250: replace_document should make minimal changes to database file

Xapian nobody at xapian.org
Fri Dec 11 16:58:02 GMT 2009


#250: replace_document should make minimal changes to database file
---------------------------+------------------------------------------------
 Reporter:  richard        |       Owner:  richard  
     Type:  enhancement    |      Status:  assigned 
 Priority:  normal         |   Milestone:  1.2.x    
Component:  Backend-Chert  |     Version:  SVN trunk
 Severity:  normal         |    Keywords:           
Blockedby:                 |    Platform:  All      
 Blocking:                 |  
---------------------------+------------------------------------------------

Comment(by richard):

 Attached a patch which does the first of these: it tracks whether any of
 the positions stored in a document have been modified, and doesn't bother
 rewriting them if none have been.  With Kan-Ru Chen's patch, this would
 become a check done before we bother comparing the position lists.

 Seems to work (ie, passes the current testsuite), but the next thing we
 need to do is add more tests to check that it works.  The testsuite is
 weak in coverage in this area.  We need some tests which add documents to
 a database, then modify them in various patterns, and then check that the
 position information is all correct.

-- 
Ticket URL: <http://trac.xapian.org/ticket/250#comment:12>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list