Commit graph

108 commits

Author SHA1 Message Date
Benedikt Willi
fb5f28aaf0 Merge branch 'andrew-wang/dj4.2' 2023-06-06 11:43:00 +02:00
Conrad
de63580ae6
Update limits.rst (#230) 2023-04-28 17:31:15 -04:00
Andrew Chen Wang
0bda00bd2c
Merge branch 'master' into andrew-wang/dj4.2 2023-04-04 15:18:08 -04:00
Andrew-Chen-Wang
d192bae22c Add Django 4.1-4.2 and Python 3.11 support (Fixes #228)
* Increment version to 4.5.0
2023-04-04 15:14:29 -04:00
Dan Koch
52406ec111
Add Django 4.1 support (#219) 2022-08-26 22:06:52 -04:00
Dominik Bartenstein
434a5759de
Add final SQL check when looking up involved tables (#199) 2021-12-27 12:30:44 -05:00
Andrew Chen Wang
f1087da6f9
Add Django 4.0 support, drop Python 3.6 and Django 3.1 (#208)
* Fix tox.ini and use exclude for ci.yml
* runtests_urls.py had an issue from using pre-Django 2.2 import of urls
* tox.ini forgot to remove 3.7 from Django 4.0 env
* Use re_path
* Avoid system error in Django test
* Fix read/test_union.py
* Test assertion error for read/test_union
* Fix remaining read/test_intersection test
* Bump version
2021-12-07 18:44:25 -05:00
Andrew Chen Wang
fe08ef3d28
Drop Django 3.0 support (#189)
* Drop Django 3.0 support
* Extended support for Django 3.0 was ended on April 6, 2021
* Update docs to reflect dropped Django 3.0 version
* Updated links in docs to reflect updated Django docs anchor tag implementation
2021-05-24 22:46:24 -04:00
Andrew Chen Wang
0937680be0
Add CACHALOT_ONLY_CACHABLE_APPS & CACHALOT_UNCACHABLE_APPS (Fixes #186) (#187) 2021-05-24 22:46:00 -04:00
Andrew Chen Wang
5eaffb4958
Add CACHALOT_ADDITIONAL_TABLES for unmanaged models (#183)
* Add CACHALOT_ADDITIONAL_TABLES for unmanaged models
- Fixes #182
- For doc purposes, we do not want to use table_names and want to continue using django_table_names from connection.introspection to avoid a query to the db every request.
2021-05-13 00:44:41 -04:00
Andrew-Chen-Wang
d0b5213014 v2.3.3
* Fix a comment block disabling incorrectly RST form for cachalot_disabled
* Update CHANGELOG.rst
* Several points did I incorrectly say that 50 modifications per second was too much. It was supposed to say minute. You'd have to have a LARGE website to really get to that point since inserts from an external DB would typically take a 250-1000ms/1s per INSERT/UPDATE
* Add Python 3.9 support in the docs and setup.py
* Move chat to Discord and reflect in the docs
2020-11-08 21:01:14 -05:00
Andrew-Chen-Wang
689f679ad3 v2.3.1 2020-08-10 17:15:13 -04:00
Andrew-Chen-Wang
6781b9b98a Added changes to CHANGELOG.rst 2020-07-29 16:10:14 -04:00
Andrew-Chen-Wang
8a55454557 Support benchmarks for MacOS
* Added how to run benchmarks in docs and README
2020-07-09 18:33:05 -04:00
Andrew-Chen-Wang
6e22dc7f58 Drop Python 2.7 and Dj 1.11 2020-06-18 09:28:00 -04:00
Andrew-Chen-Wang
a611950f00 Updated Docs
* Moved svg files of benchmark for next benchmark
2020-02-13 21:15:38 -05:00
Andrew-Chen-Wang
602cdcee1d
Version 2.2.0 (#146)
This PR upgrades cachalot to version 2.2.0 allowing for anyone to install cachalot at any Django package above 1.11. All tests currently function now.

* Added mysql as a service to fix Travis CI

* Removed tox dependency

* Removed upper limit on Django and support 2.2-3.0 CI Test
* Cachalot will only say "officially supports" while removing upper limit to not hinder anyone's progress.
* Added Python 3.8 and Django 2.2 and 3.0 to CI tests

- Max is 200 and we'll get there quickly if we add another Python version. Utilizes #127
- Keep dependencies for six and django.utils.six

* Correctly run Travis test by updating tox.ini
* Originally using tox syntax but changed testenv to travis so that travis env and travis dependencies and stuff are used

* Tox tests should start running command

* testenv without dependencies broke travis. New spot in Tox
* testenv without dependencies broke travis
* I can't figure out where testenv is supposed to be
* Good thing there's squash

* Added missing six in test
* Also added six package to Tox for Django 3.0 coverage.
* The missing six package caused several problems in several tests due to using an incorrect DB

* Resolves #138
* Need to add the panels here in order to satisfy tests

* Adds CachalotPanel to Python 2 backwards compatibility
* Forgot super class took those like save()

* Added databases to certain test cases
* APITestCase, DebugToolbarTestCase, SignalsTestCase required a database set
* Fixes errors like these: https://travis-ci.org/noripyt/django-cachalot/jobs/648691385#L4892

* Dropped OFFICIAL support for Python 3.4 + MySQL
* MySQL and its client on 3.4 is f--king up a lot of the testing and I can't bear with it. We can revisit it later, but, honestly, who uses Python 3.4... and if an organization is, then they will either have no problem with Postgres and SQLite or know that MySQL doesn't work.

* Drop Py3.4 from running. Fixed databases
* Now goes with setting's databases rather than hardcoded since some tests don't have other databases.

* Fix ReadTestCase

Django 2.2+ changed self.queryset at line 1000 with self.query=queryset.query

* Django Dependency Removed from utils.py

* Last commit used Django version. This one used try except

* Fixed assertNumQuery; added allow_failures for 3.4
* Primary: More information in test_utils.py with method is_django_21_below_and_is_sqlite
* The problem with the entire build lie in the self.is_sqlite for the tests. SQLite will make 2 queries when creating or destroying or updating instead of 1.
* In summary, if SQLite is the DB and Django

* Changed build matrix to allow failures for 3.4 instead of taking it out completely so that we can get it to work soon.

* Remove -> From function return
* I love backwards compatibility

* SQLite2 in multi_db.py returned incorrect bool

* Django 2.1 and SQLite checker doesn't work for some tests
* Some tests DO HAVE the BEGIN query that is returned... Not sure why. If the next test show completely different WriteTestCase problems, then we need to find alternative.
* Removed check from atomic

* Adjust Django and is_sqlite errors
* CI testing the Tox errors: https://travis-ci.org/noripyt/django-cachalot?utm_medium=notification&utm_source=github_status

* Adjust Django and is_sqlite errors (590 CI)
* CI testing the Tox errors: https://travis-ci.org/noripyt/django-cachalot?utm_medium=notification&utm_source=github_status
* Adjustment 2

* Make include matrix and Adjust Django and is_sqlite errors (594 CI)
* CI testing the Tox errors: https://travis-ci.org/noripyt/django-cachalot?utm_medium=notification&utm_source=github_status
* Adjustment 3

* Adjust Django and is_sqlite errors (596 CI)
* CI testing the Tox errors: https://travis-ci.org/noripyt/django-cachalot?utm_medium=notification&utm_source=github_status
* Adjustment 4
* Added my intro to ReadTheDocs

* Adjust Django and is_sqlite errors (598 CI)
* CI testing the Tox errors: https://travis-ci.org/noripyt/django-cachalot?utm_medium=notification&utm_source=github_status
* Adjustment 5

* Drop Python 3.4 from tests since PyLibMC not cooperating at that level.

* Bump package version up 1 minor for Django 2.2 and 3.0
2020-02-12 00:52:12 -05:00
Bertrand Bordage
c268a15896 Allows running on Django 2.1. 2018-08-09 14:29:47 +02:00
Bertrand Bordage
909b4f2934 Moves the repository to @NoriPyt. 2018-05-05 02:30:50 +02:00
Bertrand Bordage
8bb1ca1753 Further Django 2.0 missing references. 2018-05-04 20:49:56 +02:00
Kosei Kitahara
49cf92767c
Drop 1.8 and 1.10 from docs and setup.py 2018-04-17 14:51:43 +09:00
Bertrand Bordage
ce9ec0c0a1 Clears caches during benchmark to ensure the same conditions for each test. 2017-06-04 18:38:13 +02:00
Bertrand Bordage
da4e21b515 Adds CACHALOT_DATABASES and removes dynamic setting support.
Dynamic setting support is removed because it’s not thread-safe.
2017-06-04 18:37:39 +02:00
Bertrand Bordage
d7a36def44 Also drops Django 1.9 & Python 3.3. 2017-06-02 22:59:35 +02:00
Bertrand Bordage
e6b71a8213 Updates Sphinx requirements. 2017-06-02 22:59:29 +02:00
Bertrand Bordage
60c29e888f Typos in docs. 2017-06-02 22:57:31 +02:00
Bertrand Bordage
a302f6b77a Version 1.4.1. 2016-10-24 20:44:32 +02:00
Bertrand Bordage
b6c1426168 Replaces Slack with gitter. 2016-09-29 19:40:32 +02:00
Bertrand Bordage
8caeab4742 Documentation update on CACHALOT_CACHE & some limits. 2016-09-29 19:12:01 +02:00
Bertrand Bordage
dbbc4ff4c8 Documentation typos. 2016-09-13 22:25:42 +02:00
Bertrand Bordage
cffed48026 Version 1.3.0. 2016-09-13 21:59:10 +02:00
Bertrand Bordage
01163c1f29 Renames the Jinja2 extension for Python 2.7 compatibility. 2016-09-13 20:30:18 +02:00
Bertrand Bordage
04afa3f439 Adds a Jinja2 extension. 2016-09-13 20:15:30 +02:00
Bertrand Bordage
62cb9c5c78 Adds a « Do not use if… » documentation paragraph. 2016-09-13 13:51:22 +02:00
Bertrand Bordage
f1093935d2 Adds documentation build requirements. 2016-09-13 13:48:08 +02:00
Bertrand Bordage
82262184c8 Specifies how to invalidate cachalot after changing some settings. 2016-09-07 00:57:27 +02:00
Bertrand Bordage
571e6ec691 Adds CACHALOT_TIMEOUT. 2016-09-06 21:57:26 +02:00
Bertrand Bordage
858f88f154 Adds links to the Slack team. 2016-09-06 11:39:00 +02:00
Bertrand Bordage
a0980cf696 Tests Django 1.10. 2016-07-21 10:57:06 +02:00
Bertrand Bordage
d2c9274d5d Doc typo. 2016-05-31 14:03:26 +02:00
Bertrand Bordage
f0af6635c0 Updates to 2016. 2016-01-13 20:02:56 +01:00
Bertrand Bordage
ef36e56fe7 Changes __version__ for PEP 396 compliance. 2016-01-11 21:05:39 +01:00
Bertrand Bordage
2ef0252e9a Adds the only downside of cachalot to the comparison.
Just for clarity, even though it’s written above.
2015-12-22 21:19:20 +01:00
Bertrand Bordage
203901d9b3 Updates the select_related/prefetch_related comparison. 2015-12-22 21:12:57 +01:00
Bertrand Bordage
0e0c0dcdc1 Removes some rows from the comparison where the edge case are extremely rare… 2015-12-22 20:49:03 +01:00
Bertrand Bordage
f723f73584 Adds new supported versions to Quickstart. 2015-12-22 19:59:56 +01:00
Bertrand Bordage
66ae8e0035 Updates the package comparison by checking instead of reading documentations. 2015-12-22 19:59:35 +01:00
Bertrand Bordage
286e59074d Documents how to use django-cachalot with a replica database. 2015-12-19 02:58:38 +01:00
Bertrand Bordage
8060030ae2 Typos. 2015-12-18 11:10:54 +01:00
Bertrand Bordage
d959f3e42f Waits until the end of transaction before triggering the signal, and trigger the signal on all invalidations. 2015-10-28 12:54:39 +01:00