Skip to content
This repository was archived by the owner on Dec 28, 2021. It is now read-only.

Commit 9dba505

Browse files
committed
Added GIF animations for better documentation.
1 parent f934310 commit 9dba505

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

Diff for: docs/_static/eager-loading.gif

113 KB
Loading

Diff for: docs/_static/lazy-loading.gif

266 KB
Loading

Diff for: docs/_static/promised-loading.gif

277 KB
Loading

Diff for: docs/index.rst

+6
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Most of operations that depend on models are finished in controllers. ::
2828
Codes like this pattern cause a *blank screen* when the browser are loading it.
2929
Then, the result list are rendered suddenly at once.
3030

31+
.. image:: _static/eager-loading.gif
32+
3133
To avoid the *blank screen*, we can make queries lazy::
3234

3335
def list_posts():
@@ -50,6 +52,8 @@ list slightly slowly but gradually. This *lazy* approach helps hasty users
5052
to feel that they are waiting less, but total elapsed time still doesn't become
5153
shorter.
5254

55+
.. image:: _static/lazy-loading.gif
56+
5357
What SQLAlchemy-Future does is helping programmers to parallelize queries
5458
easily. What you have to do is just to place :meth:`~future.Query.promise()`
5559
methods where :meth:`~sqlalchemy.orm.query.Query.all()` methods may come::
@@ -73,6 +77,8 @@ execution (that may be some prepared already).
7377
As result, similarly to the lazy approach of the above, the browser renders
7478
result list gradually, but unlike to the lazy approach, relatively fast.
7579

80+
.. image:: _static/promised-loading.gif
81+
7682

7783
How to setup
7884
============

0 commit comments

Comments
 (0)