manila/manila/db/sqlalchemy
silvacarloss 8263f911be Fix pagination does not speed up queries bug
This patch modifies the database api layer to fix the pagination
slowness bug, which causes a delay while the administrator tries
to list shares using the `--limit` option.
This change was tested in a very busy environment with 800 shares.
Before the change, the operation took about 25 seconds to be
finished. Now, the operation takes about 3 seconds in the same
environment.

Change-Id: I89659452b0e033631f1318a2eabb7e120c9e5743
Closes-bug: #1795463
(cherry picked from commit 57edcbd1da)
(cherry picked from commit 462b0e7461)
(cherry picked from commit bad03feea9)
2019-10-18 23:22:33 +00:00
..
__init__.py Address H104 File contains nothing but comments 2014-07-14 10:19:15 +02:00
api.py Fix pagination does not speed up queries bug 2019-10-18 23:22:33 +00:00
models.py Remove confusing DB deprecation messages 2018-06-16 12:54:16 +00:00
query.py Use soft_delete() methods in DB api 2015-07-13 15:28:47 +03:00