Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Second level cache #580

Closed
wants to merge 71 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
8fe90d1
Second cache level POC
FabioBatSilva Feb 13, 2013
52d4b88
First round of refactory
FabioBatSilva Feb 17, 2013
55146a3
Fix factory method name
FabioBatSilva Mar 15, 2013
0731254
refactoring region access tests
FabioBatSilva Mar 28, 2013
9466a44
basically support for many to many collection
FabioBatSilva Mar 29, 2013
d532fdf
Refactoring tests
FabioBatSilva Mar 29, 2013
3468ed7
store cascade collections
FabioBatSilva Mar 31, 2013
b062340
refactoring collections store
FabioBatSilva Mar 31, 2013
2904ecf
handle one to many collections storage
FabioBatSilva Mar 31, 2013
0ee0833
tests put entities on persist
FabioBatSilva Apr 1, 2013
da0398a
test one to many orphan removal
FabioBatSilva Apr 1, 2013
3097ea7
drop support for Region#toArray and Region#count
FabioBatSilva Apr 2, 2013
ea84b4d
Configurable cache interface
FabioBatSilva Apr 2, 2013
af77be3
test DefaultCache
FabioBatSilva Apr 2, 2013
85e23d6
drop cache key api from cache interface
FabioBatSilva Apr 2, 2013
29ef4e7
refactoring default cache test
FabioBatSilva Apr 2, 2013
43c0d44
Basic interaction between query and second level cache
FabioBatSilva Apr 10, 2013
84f670c
add cache entry and configurable region lifetime
Jun 14, 2013
784fe63
test flush fail
Jun 17, 2013
cb3aa8d
test select using parameters and missing entity cache
Jun 17, 2013
06fc8d3
improve query test coverage
Jun 17, 2013
014c2b7
reload collection when entity cache is missing
Jun 17, 2013
894e3c8
single table inheritance mapping
Jun 17, 2013
961c773
Basic inheritance support
Jun 18, 2013
4d058a4
fix test tear down
Jun 18, 2013
0ed6845
test collection using inheritance
Jun 18, 2013
f97eca0
check collection cache only if the owner entity cache its enabled
Jun 18, 2013
db4efdf
remove lock mode parameter
Jun 18, 2013
4f7d4ff
fix cache configuration exception message
Jun 18, 2013
ffc624d
basic cache loggin/stats
Jun 19, 2013
c8ed9be
fix cache log and improve hit/miss/put coverage
Jun 20, 2013
b8b76d7
query cache log
Jun 20, 2013
b71623f
move query cache API to AbstractQuery
Jun 20, 2013
3b34145
test fetch-join one-to-many
Jun 20, 2013
c163601
put entity loaded from query
Jun 20, 2013
b61becc
handling fetch-joins
Jun 20, 2013
f571349
drop suport for query x-to-many
Jun 21, 2013
29caac4
Transaction region access strategy
Jun 21, 2013
3348d6c
test basic concurrent
Jun 21, 2013
77d8b7a
suport cached collection in a query cache
Jun 24, 2013
6209a51
cache query limit
Jun 24, 2013
81d2e90
test query life-time and query region
Jun 24, 2013
9ff0e21
check if cache is enabled into uow
Jun 25, 2013
f6a5efe
Performance test and improvements
Jun 26, 2013
96fe2df
Cache join table inheritance
Jun 27, 2013
fd2bee9
test query cache exceptions
Jul 2, 2013
4105a80
Configurable query cache validation strategy
Jul 2, 2013
fef2ac7
Implement xml/yml/php drivers
Jul 2, 2013
92a6a7b
Refactoring collection cache
Jul 2, 2013
cb916c4
Refactoring cache to use persister decorator
Jul 10, 2013
43e3b0d
reduce QueryCache dependence
Jul 10, 2013
4ff7a64
Improve one-to-many collection coverage
Jul 11, 2013
9771f05
Test collection lock
Jul 11, 2013
907820e
Query cache mode
Jul 11, 2013
7396e56
Basic documentation for second level cache
Jul 12, 2013
453fa0a
Support entity repository
Jul 12, 2013
b8f368e
Run test suite using second-level-cache
FabioBatSilva Jul 28, 2013
59ff676
Improve code coverage
Aug 1, 2013
73fb0f7
association type based collections persisters
FabioBatSilva Aug 3, 2013
6caaf2c
Move cached persisters
FabioBatSilva Aug 3, 2013
376a50a
Improve code coverage
FabioBatSilva Aug 4, 2013
a447775
Fix second-level-cache build
FabioBatSilva Aug 4, 2013
4dbbdbf
add travis build filter whitelist
FabioBatSilva Aug 4, 2013
2e23555
Refactoring region access strategies
Sep 20, 2013
f757894
Drop RegionAccessStrategy in favor of CachedPersister
Sep 23, 2013
f99c04a
Coverage improvement
Sep 25, 2013
814b794
Update DefaultRegion to use namespaces
Sep 26, 2013
a1d5f96
Small performance improvements
Sep 26, 2013
4fe697a
Fix doc layout
Sep 26, 2013
c7267f0
Change CacheFactory interface
Sep 30, 2013
0cc72cd
FileLockRegion and some docs update
Sep 30, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 7 additions & 4 deletions .travis.yml
Expand Up @@ -6,9 +6,12 @@ php:
- 5.5

env:
- DB=mysql
- DB=pgsql
- DB=sqlite
- DB=mysql ENABLE_SECOND_LEVEL_CACHE=1
- DB=pgsql ENABLE_SECOND_LEVEL_CACHE=1
- DB=sqlite ENABLE_SECOND_LEVEL_CACHE=1
- DB=mysql ENABLE_SECOND_LEVEL_CACHE=0
- DB=pgsql ENABLE_SECOND_LEVEL_CACHE=0
- DB=sqlite ENABLE_SECOND_LEVEL_CACHE=0

before_script:
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests;' -U postgres; fi"
Expand All @@ -18,7 +21,7 @@ before_script:
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS doctrine_tests_tmp;create database IF NOT EXISTS doctrine_tests;'; fi"
- composer install --prefer-dist --dev

script: phpunit --configuration tests/travis/$DB.travis.xml
script: phpunit -v --configuration tests/travis/$DB.travis.xml

after_script:
- php vendor/bin/coveralls -v
1 change: 1 addition & 0 deletions docs/en/index.rst
Expand Up @@ -78,6 +78,7 @@ Advanced Topics
* :doc:`Change Tracking Policies <reference/change-tracking-policies>`
* :doc:`Best Practices <reference/best-practices>`
* :doc:`Metadata Drivers <reference/metadata-drivers>`
* :doc:`Second Level Cache <reference/second-level-cache>`

Tutorials
---------
Expand Down