[Checkins] [zopefoundation/Products.ZCatalog] 907ce3: Initial support of catalog caching with plone.memoize

Andreas Gabriel noreply at github.com
Wed Apr 17 17:49:02 CEST 2019


  Branch: refs/heads/andbag-zcatalog-caching
  Home:   https://github.com/zopefoundation/Products.ZCatalog
  Commit: 907ce30e16ee2a64bfb7d144d144de082ff9cd89
      https://github.com/zopefoundation/Products.ZCatalog/commit/907ce30e16ee2a64bfb7d144d144de082ff9cd89
  Author: Andreas Gabriel <gabriel at hrz.uni-marburg.de>
  Date:   2019-04-17 (Wed, 17 Apr 2019)

  Changed paths:
    M setup.py
    M src/Products/PluginIndexes/interfaces.py
    M src/Products/ZCatalog/Catalog.py
    A src/Products/ZCatalog/cache.py

  Log Message:
  -----------
  Initial support of catalog caching with plone.memoize


  Commit: a50a84ee676de89d8a48addb008ff4a01dce48d0
      https://github.com/zopefoundation/Products.ZCatalog/commit/a50a84ee676de89d8a48addb008ff4a01dce48d0
  Author: Andreas Gabriel <gabriel at hrz.uni-marburg.de>
  Date:   2019-04-17 (Wed, 17 Apr 2019)

  Changed paths:
    M src/Products/PluginIndexes/TopicIndex/FilteredSet.py
    M src/Products/PluginIndexes/TopicIndex/TopicIndex.py
    M src/Products/PluginIndexes/TopicIndex/tests.py

  Log Message:
  -----------
  Add getCounter logic to TopicIndex


  Commit: a95273e7b92ea97471be34a603f4bb965c1b6779
      https://github.com/zopefoundation/Products.ZCatalog/commit/a95273e7b92ea97471be34a603f4bb965c1b6779
  Author: Andreas Gabriel <gabriel at hrz.uni-marburg.de>
  Date:   2019-04-17 (Wed, 17 Apr 2019)

  Changed paths:
    M src/Products/PluginIndexes/PathIndex/PathIndex.py
    M src/Products/PluginIndexes/PathIndex/tests.py

  Log Message:
  -----------
  Add getCounter logic to PathIndex


  Commit: c817b8da71088d813cc44ef9feae99267f6f17f4
      https://github.com/zopefoundation/Products.ZCatalog/commit/c817b8da71088d813cc44ef9feae99267f6f17f4
  Author: Andreas Gabriel <gabriel at hrz.uni-marburg.de>
  Date:   2019-04-17 (Wed, 17 Apr 2019)

  Changed paths:
    M src/Products/ZCatalog/Catalog.py
    M src/Products/ZCatalog/cache.py

  Log Message:
  -----------
  Refactor caching


  Commit: e0312b250bfca59f331b68007c582af1c81fcbb2
      https://github.com/zopefoundation/Products.ZCatalog/commit/e0312b250bfca59f331b68007c582af1c81fcbb2
  Author: Andreas Gabriel <gabriel at hrz.uni-marburg.de>
  Date:   2019-04-17 (Wed, 17 Apr 2019)

  Changed paths:
    M src/Products/PluginIndexes/unindex.py

  Log Message:
  -----------
  Implement IIndexCounter


  Commit: 1b0b862195377ba826d8516aa01c4c6d37ec5616
      https://github.com/zopefoundation/Products.ZCatalog/commit/1b0b862195377ba826d8516aa01c4c6d37ec5616
  Author: Andreas Gabriel <gabriel at hrz.uni-marburg.de>
  Date:   2019-04-17 (Wed, 17 Apr 2019)

  Changed paths:
    M src/Products/ZCatalog/Catalog.py
    M src/Products/ZCatalog/cache.py

  Log Message:
  -----------
  Refactor decorator and cache key format


  Commit: 6d78f86d2c36a4a1bbc1b4bb6b6dec9f6e31c47b
      https://github.com/zopefoundation/Products.ZCatalog/commit/6d78f86d2c36a4a1bbc1b4bb6b6dec9f6e31c47b
  Author: Andreas Gabriel <gabriel at hrz.uni-marburg.de>
  Date:   2019-04-17 (Wed, 17 Apr 2019)

  Changed paths:
    M src/Products/ZCatalog/tests/test_zcatalog.py

  Log Message:
  -----------
  Need unique id of catalog instance for caching support


  Commit: 67c345de778995ea0e15005390508481236b9cd1
      https://github.com/zopefoundation/Products.ZCatalog/commit/67c345de778995ea0e15005390508481236b9cd1
  Author: Andreas Gabriel <gabriel at hrz.uni-marburg.de>
  Date:   2019-04-17 (Wed, 17 Apr 2019)

  Changed paths:
    M src/Products/ZCatalog/tests/test_catalog.py

  Log Message:
  -----------
  Fix catalog test for caching support


  Commit: c52d18abb0a826ecfbf8edbb8397f6625ca95167
      https://github.com/zopefoundation/Products.ZCatalog/commit/c52d18abb0a826ecfbf8edbb8397f6625ca95167
  Author: Andreas Gabriel <gabriel at hrz.uni-marburg.de>
  Date:   2019-04-17 (Wed, 17 Apr 2019)

  Changed paths:
    M src/Products/ZCatalog/cache.py
    A src/Products/ZCatalog/tests/test_cache.py

  Log Message:
  -----------
  Initial cache tests


  Commit: a4d0f334864b05111867f5fb354225498a21320e
      https://github.com/zopefoundation/Products.ZCatalog/commit/a4d0f334864b05111867f5fb354225498a21320e
  Author: Andreas Gabriel <gabriel at hrz.uni-marburg.de>
  Date:   2019-04-17 (Wed, 17 Apr 2019)

  Changed paths:
    M src/Products/ZCatalog/cache.py
    M src/Products/ZCatalog/tests/test_cache.py
    M src/Products/ZCatalog/tests/test_zcatalog.py

  Log Message:
  -----------
  Add more caching tests


  Commit: 1dc26e12488673a232f088528e014f8501a0fb05
      https://github.com/zopefoundation/Products.ZCatalog/commit/1dc26e12488673a232f088528e014f8501a0fb05
  Author: Andreas Gabriel <gabriel at hrz.uni-marburg.de>
  Date:   2019-04-17 (Wed, 17 Apr 2019)

  Changed paths:
    M src/Products/ZCatalog/cache.py
    M src/Products/ZCatalog/tests/test_cache.py

  Log Message:
  -----------
  Cache key is invariant of sort or pagenation options


  Commit: 3b8914dcf0897d6baf057b35ba0ad8f946a821bb
      https://github.com/zopefoundation/Products.ZCatalog/commit/3b8914dcf0897d6baf057b35ba0ad8f946a821bb
  Author: Andreas Gabriel <gabriel at hrz.uni-marburg.de>
  Date:   2019-04-17 (Wed, 17 Apr 2019)

  Changed paths:
    M src/Products/ZCatalog/tests/test_cache.py

  Log Message:
  -----------
  wrap map calls in list calls


  Commit: ee06fb9751c987ebfff6ae45ba1673d3acdc7b07
      https://github.com/zopefoundation/Products.ZCatalog/commit/ee06fb9751c987ebfff6ae45ba1673d3acdc7b07
  Author: Andreas Gabriel <gabriel at hrz.uni-marburg.de>
  Date:   2019-04-17 (Wed, 17 Apr 2019)

  Changed paths:
    M src/Products/PluginIndexes/DateRangeIndex/DateRangeIndex.py
    M src/Products/PluginIndexes/PathIndex/PathIndex.py
    M src/Products/PluginIndexes/TopicIndex/TopicIndex.py
    M src/Products/PluginIndexes/interfaces.py
    M src/Products/PluginIndexes/tests/test_unindex.py
    M src/Products/PluginIndexes/unindex.py
    M src/Products/ZCatalog/cache.py
    M src/Products/ZCatalog/tests/test_cache.py

  Log Message:
  -----------
  Add transaction awareness for cache keys


  Commit: 6a39e7ee7ee3507d2de385bab06c70e7d1e8f87a
      https://github.com/zopefoundation/Products.ZCatalog/commit/6a39e7ee7ee3507d2de385bab06c70e7d1e8f87a
  Author: Andreas Gabriel <gabriel at hrz.uni-marburg.de>
  Date:   2019-04-17 (Wed, 17 Apr 2019)

  Changed paths:
    M src/Products/PluginIndexes/PathIndex/PathIndex.py
    M src/Products/PluginIndexes/TopicIndex/TopicIndex.py
    M src/Products/PluginIndexes/interfaces.py
    M src/Products/PluginIndexes/tests/test_unindex.py
    M src/Products/PluginIndexes/unindex.py
    M src/Products/ZCatalog/cache.py
    M src/Products/ZCatalog/tests/test_cache.py

  Log Message:
  -----------
  Revert "Add transaction awareness for cache keys" because _p_serial
isn't an adequate marker for an unique key generation

This reverts commit 9d8aea653c6a729085e41bf48f0fe69cd6ca8f74.


  Commit: 26931ccef4c44ab41449e22200a543fd644ea6ae
      https://github.com/zopefoundation/Products.ZCatalog/commit/26931ccef4c44ab41449e22200a543fd644ea6ae
  Author: Andreas Gabriel <gabriel at hrz.uni-marburg.de>
  Date:   2019-04-17 (Wed, 17 Apr 2019)

  Changed paths:
    M src/Products/PluginIndexes/BooleanIndex/tests.py
    M src/Products/PluginIndexes/DateIndex/tests.py
    M src/Products/PluginIndexes/DateRangeIndex/tests.py
    M src/Products/PluginIndexes/KeywordIndex/tests.py
    M src/Products/PluginIndexes/PathIndex/PathIndex.py
    M src/Products/PluginIndexes/PathIndex/tests.py
    M src/Products/PluginIndexes/TopicIndex/TopicIndex.py
    M src/Products/PluginIndexes/TopicIndex/tests.py
    M src/Products/PluginIndexes/UUIDIndex/tests.py
    M src/Products/PluginIndexes/tests/test_unindex.py
    M src/Products/PluginIndexes/unindex.py
    M src/Products/ZCatalog/cache.py
    M src/Products/ZCatalog/tests/test_cache.py

  Log Message:
  -----------
  Fixed inconsistent cache read of concurrent threads


  Commit: 1be89a481793de1eb70f14771e6455f7a0fa3d20
      https://github.com/zopefoundation/Products.ZCatalog/commit/1be89a481793de1eb70f14771e6455f7a0fa3d20
  Author: Andreas Gabriel <gabriel at hrz.uni-marburg.de>
  Date:   2019-04-17 (Wed, 17 Apr 2019)

  Changed paths:
    M src/Products/PluginIndexes/BooleanIndex/tests.py
    M src/Products/PluginIndexes/DateIndex/tests.py
    M src/Products/PluginIndexes/DateRangeIndex/tests.py
    M src/Products/PluginIndexes/KeywordIndex/tests.py
    M src/Products/PluginIndexes/PathIndex/PathIndex.py
    M src/Products/PluginIndexes/PathIndex/tests.py
    M src/Products/PluginIndexes/TopicIndex/TopicIndex.py
    M src/Products/PluginIndexes/TopicIndex/tests.py
    M src/Products/PluginIndexes/UUIDIndex/tests.py
    M src/Products/PluginIndexes/tests/test_unindex.py
    M src/Products/PluginIndexes/unindex.py
    M src/Products/ZCatalog/cache.py
    M src/Products/ZCatalog/tests/test_cache.py

  Log Message:
  -----------
  Implement transaction isolation syncer


  Commit: caa2dd623181584228221183f3232bb3af735852
      https://github.com/zopefoundation/Products.ZCatalog/commit/caa2dd623181584228221183f3232bb3af735852
  Author: Andreas Gabriel <gabriel at hrz.uni-marburg.de>
  Date:   2019-04-17 (Wed, 17 Apr 2019)

  Changed paths:
    M src/Products/ZCatalog/cache.py
    M src/Products/ZCatalog/tests/test_cache.py

  Log Message:
  -----------
  Use volatile attribute of instance for buffering cache values


  Commit: ed38d23b83e4ec61b2f67d378453f9e2cce86467
      https://github.com/zopefoundation/Products.ZCatalog/commit/ed38d23b83e4ec61b2f67d378453f9e2cce86467
  Author: Andreas Gabriel <gabriel at hrz.uni-marburg.de>
  Date:   2019-04-17 (Wed, 17 Apr 2019)

  Changed paths:
    M src/Products/ZCatalog/tests/test_cache.py

  Log Message:
  -----------
  Fix flake8


Compare: https://github.com/zopefoundation/Products.ZCatalog/compare/8eb64f2542c0...ed38d23b83e4


More information about the checkins mailing list