• unknown's avatar
    Changes to support optimized bulk inserts. This will solve the problem of... · 9f726d99
    unknown authored
    Changes to support optimized bulk inserts. This will solve the problem of selects occurring during a bulk insert, and causing the compression factor to drop. 
    
    
    mysql-test/r/archive.result:
      Updated result set for changes amde to support delayed insert and bulk insert optimizations.
    mysql-test/t/archive.test:
      Test cases to test bulk insert statements and delayed insert syntax.
    sql/examples/ha_archive.cc:
      Added methods needed for bulk operations to be optimized. Bulk inserts now do not trigger the file as dirty until they are complete. A normal insert though can still cause them to be synced though since it is not effected by the flag. Removed share variable to determine if row count is right or not (it should not be treated as an upper end estimate).
    sql/examples/ha_archive.h:
      Removed share variable for delayed flag since it is no longer needed. 
      Added flag in table instance to know if a bulk insert is happening.
      
      Added method declarations for bulk insert optimizations.
    9f726d99
ha_archive.cc 27 KB