Skip to content

Moving hosts between data collectors is slow #2978

@eschoeller

Description

@eschoeller

Not sure if there's anything that can be done for this, but it takes a very long time to move multiple devices between data collectors. On the device Management page I select numerous devices and then select the "Change Device Settings" option. I then change the Poller Association.
There is a query that runs for every single device that takes 6 seconds to run:

# Time: 190925 18:59:04
# User@Host: apache[apache] @ localhost []  Id: 16810339
# Query_time: 5.228184  Lock_time: 0.000449 Rows_sent: 191  Rows_examined: 1031541
SET timestamp=1569459544;
SELECT did.* FROM data_input_data AS did INNER JOIN data_template_data AS dtd ON did.data_template_data_id=dtd.id INNER JOIN data_local AS dl ON dl.id=dtd.local_data_id INNER JOIN host AS h ON h.id=dl.host_id WHERE h.id = '728';

So, moving 50 devices from one collector to another takes a very long time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions