#1 Periodic callout during searches

closed
5
2008-03-20
2008-02-28
Anonymous
No

It would be nice to be able to specify some Tcl code that would be called periodically during a big search.

For instance, if I'm checkpointing a large table to disk using write_tabsep, I'd like, every few hundred rows or so, to invoke "update" to process pending events and idle callbacks.

Discussion

  • Peter da Silva
    Peter da Silva
    2008-02-28

    Logged In: YES
    user_id=104286
    Originator: NO

    search ... -idle_code {...} -idle_interval 300 ?

    read_tabsep $fp -idle_code {...} -idle_interval?

    Or just -idle_interval and let it assume "update"?

     
    • assigned_to: nobody --> quengho
     
  • Peter da Silva
    Peter da Silva
    2008-03-05

    Logged In: YES
    user_id=104286
    Originator: NO

    * Added background polling for search, new options:
    -poll_interval rows (default 0)
    -poll_code {code} (default none)
    If a poll interval is specified but no code is provided, then it
    calls Tcl_DoOneEvent(0) ... equivalent of "update". If code is provided
    and no interval is specified, it uses CTABLE_DEFAULT_POLL_INTERVAL
    from ctable.h. Errors from the poll code are handled by the bgerror
    mechanism

    * Fixed some error handling problems in ctable_search.c

     
  • Peter da Silva
    Peter da Silva
    2008-03-05

    • status: open --> pending
     
  • Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending --> closed