Uploaded image for project: 'Bookkeeper'
  1. Bookkeeper
  2. BOOKKEEPER-137

Do not create Ledger index files until absolutely necessary.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.1.0
    • None
    • None

    Description

      This is an optimization to speed up the case where we have many ledgers and are writing to them at random (a benchmark case we currently have). Currently, we create the ledger index file and write the first 1k of it to disk immediately. With a lot of ledgers being randomly written to, this means a lot of random writes on the ledger disk. This fix postpones the creation of the index file and writing of the first 1k until the first flush of the ledger.

      Attachments

        1. BOOKKEEPER-137.diff
          19 kB
          Ivan Kelly
        2. BOOKKEEPER-137.diff
          33 kB
          Ivan Kelly
        3. BOOKKEEPER-137.diff
          33 kB
          Ivan Kelly
        4. BOOKKEEPER-137.diff
          33 kB
          Ivan Kelly
        5. BOOKKEEPER-137.diff
          33 kB
          Ivan Kelly

        Issue Links

          Activity

            People

              ikelly Ivan Kelly
              ikelly Ivan Kelly
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: