ktdreyer / koji-ansible

Ansible modules to manage Koji resources
GNU General Public License v3.0
24 stars 22 forks source link

use multicall for performance #30

Open ktdreyer opened 5 years ago

ktdreyer commented 5 years ago

As we add more features to koji_tag, we're making more and more XML-RPC calls, and this is slowing down the playbook operation.

We should be able to get all the information we need about the tag in one single "read" multicall, and then we can make all the changes we need in another single "write" multicall.

mizdebsk commented 5 years ago

It is probably not possible to do everything it just two multicall calls. For example, some calls require passing tag ID, but you don't know that until tag is created. But it should be possible to group everything into a few RPC calls.

ktdreyer commented 2 years ago

I played around with multicall recently and improved the upstream docs at https://pagure.io/koji/pull-request/3226