Nodes are deleted inefficiently in nailgun.

Bug #1429014 reported by Maciej Kwiek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Maciej Kwiek

Bug Description

There are several places in code where nodes are deleted by getting them from db, iterating over them and calling `delete` method on each object. It should be done differently, by deleting nodes in bulks.

summary: - Nodes are deleted inefficiently.
+ Nodes are deleted inefficiently in nailgun.
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Maciej Kwiek (maciej-iai)
status: New → In Progress
Ryan Moe (rmoe)
Changed in fuel:
importance: Undecided → Medium
milestone: none → 6.1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/161788
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=6f75452d296524868d7922b80ee3ba385f3c96c0
Submitter: Jenkins
Branch: master

commit 6f75452d296524868d7922b80ee3ba385f3c96c0
Author: Maciej Kwiek <email address hidden>
Date: Mon Mar 2 14:28:34 2015 +0100

    Delete nodes in batch instead of iterating

    Nodes were deleted by getting them from database, then iterating over
    them, which was not efficient. Now they are deleted in batch.

    Node model has a new method: delete_by_ids, which does just that.

    Change-Id: Icc1fe51ebf31f153fe0b6302953060c5f2d7267c
    Closes-Bug: #1429014

Changed in fuel:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.