• Monty's avatar
    Code cleanups and add some caching of functions to speed up things · 3316a54d
    Monty authored
    Detailed description:
    - Added more function comments and fixed types in some old comments
    - Removed an outdated comment
    - Cleaned up some functions in records.cc
      - Replaced "while" with "if"
      - Reused error code
      - Made functions similar
    - Added caching of pfs_batch_update()
    - Simplified some rowid_filter code
      - Only call build_range_rowid_filter() if rowid filter will be used
      - Replaced tab->is_rowid_filter_built with need_to_build_rowid_filter.
        We only have to test need_to_build_rowid_filter to know if we have
        to build the filter. Old code needed two tests
      - Added function 'clear_range_rowid_filter' to disable rowid filter.
        Made things simpler as we can now clear all rowid filter variables
        in one place.
    - Removed some 'if' in sub_select()
    3316a54d
sql_join_cache.cc 145 KB