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

Xapian nobody at xapian.org
Sun Dec 21 10:57:12 GMT 2008


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

Comment(by richard):

 It occurs to me that, if we found that the replace_document() method was
 significantly slower with these modifications in the case where the old
 document was entirely different to the new document, we could just advise
 users to do delete_document() and then add_document() in this situation.
 This is essentially what the current implementation does, so would have
 the same performance as the current implementation.

 Therefore, it seems reasonable to just implement checks for modifications
 in replace_document(), then profile, and document as appropriate.  There
 should therefore be no need to change the API of replace_document() to
 make it apply only the modifications.

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



More information about the Xapian-tickets mailing list