A question of signals and ATOMIC_REQUESTS

2018-01-30 Thread mesulphur
When ATOMIC_REQUESTS=True is set, are ORM signals - post_save and pre_save - also executed within the transaction? Per my inference, they seem be to a part of the transaction. Assuming my inference is correct, then consider the following code @receiver(post_save, sender=MyModel) def log_and_

Re: Scaling/Parallel patterns for a View executing complex database transaction

2015-06-16 Thread mesulphur
Exactly! We did prototype with Mongo and Riak to see if there were significant performance gains and the answer was no. Well tuned Postgres performed as well and as others. Add to this the complexities and risks associated with introducing a new component in your stack as against something stab

Re: Scaling/Parallel patterns for a View executing complex database transaction

2015-05-15 Thread mesulphur
Hi Stephen, We did try with Redis (instead of memcached) but the memory usage Redis is 2.5x-3x the volume of data, the economics of having entire data in memory then breaks down. Also because of the large degree of variation/random access patterns, there is little benefit in using an LRU cach