Comment 4 for bug 1627362

Revision history for this message
Mike Pontillo (mpontillo) wrote :

I missed the fact this was only occurring when a batched query was requested over the websocket. So this issue only arises when there are a large amount of discoveries.

Note that the CLI/API still works if you want to list the discoveries, but the dashboard page is unfortunately broken.

I have a branch with a workaround that seems to work, which simply disables batched queries for network discoveries. A full solution (batch loading for database objects without auto-incrementing primary keys) is trickier and will require more effort. (we have a solution for machines using system_id, but system_id is a string that Django has no trouble comparing, whereas discoveries were using a first_seen time, and the comparison query was failing for some reason.