Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The performance of gnocchi list resource interface is not good #1369

Open
magiceses opened this issue Jan 16, 2024 · 0 comments
Open

The performance of gnocchi list resource interface is not good #1369

magiceses opened this issue Jan 16, 2024 · 0 comments

Comments

@magiceses
Copy link

Before reporting an issue on Gnocchi, please be sure to provide all necessary
information.

Which version of Gnocchi are you using

v4.6

How to reproduce your problem

SQLAlchemy version is 1.4.36, SQLAlchemy-Utils version is 0.36.6, test code in SQLAlchemy package :

    def all(self):
        print datetime.datetime.now()
        a = self._iter().all()
        print datetime.datetime.now()
        return a
()[root@busybox-openstack-74899fb545-kp5r4 /]# gnocchi resource list -t volume --max-width=9999| wc -l
6033

[Mon May 09 20:38:27.600971 2022] [:error] [pid 76] all-- 2022-05-09 20:38:27.600942
... ...
[Mon May 09 20:39:03.488344 2022] [:error] [pid 76] all-- 2022-05-09 20:39:03.488269

it takes 36s+ when i list all resources;

What is the result that you get

it takes 36s+ when i list all resources;

What is result that you expected

I wish it takes less than 5s.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant