[Xapian-tickets] [Xapian] #266: Add more control over the automatic flush and commit behaviour

Xapian nobody at xapian.org
Mon Jun 20 10:12:05 BST 2011


#266: Add more control over the automatic flush and commit behaviour
-------------------------+--------------------------------------------------
 Reporter:  richard      |       Owner:  olly     
     Type:  enhancement  |      Status:  assigned 
 Priority:  normal       |   Milestone:  1.3.0    
Component:  Library API  |     Version:  SVN trunk
 Severity:  normal       |    Keywords:           
Blockedby:               |    Platform:  All      
 Blocking:               |  
-------------------------+--------------------------------------------------

Comment(by james):

 It might be cleaner to provide a typedef for "threshold", which can
 initially be numeric but later a struct that includes units (I'm thinking
 a little like fpos_t in fgetpos/fsetpos). We'd probably also want to
 overload set_FOO_threshold so there's one with separate formal parameters.

 This preserves `set_flush_threshold(set_flush_threshold(0))`, allows for
 set_flush_threshold(int) to do the obvious thing, and provides a path to
 develop this further without more magical behaviour. Having
 set_flush_threshold(int) preserve the existing units is less obvious to me
 than having a default unit.

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



More information about the Xapian-tickets mailing list