gallery.accords-library.com/server/szurubooru/tests/func
rr- ffb87f1650 server/posts: defer flush; save content lazily
Rather than flushing the post right away only to find out that there
were validation errors, try to postpone flushing for as long as
possible.

The previous behavior has led to too eager spending of post IDs - each
flush calls nextval(post_id_seq), and postgres sequences are not
affected by transaction rollbacks, so each erroneous post creation
discarded a post ID, which has led to gaps in post IDs.
2016-08-26 15:09:08 +02:00
..
__init__.py server/general: embrace most of PEP8 2016-08-14 16:44:03 +02:00
test_comments.py server/tests: use real database 2016-08-16 17:22:33 +02:00
test_diff.py server/snapshots: rewrite 2016-08-16 21:51:25 +02:00
test_mime.py server/general: embrace most of PEP8 2016-08-14 16:44:03 +02:00
test_net.py server/general: embrace most of PEP8 2016-08-14 16:44:03 +02:00
test_posts.py server/posts: defer flush; save content lazily 2016-08-26 15:09:08 +02:00
test_snapshots.py server/general: disable autoflush 2016-08-26 14:41:05 +02:00
test_tag_categories.py server/general: disable autoflush 2016-08-26 14:41:05 +02:00
test_tags.py server/general: disable autoflush 2016-08-26 14:41:05 +02:00
test_users.py server/general: disable autoflush 2016-08-26 14:41:05 +02:00
test_util.py server/general: embrace most of PEP8 2016-08-14 16:44:03 +02:00