Skip to content

performance enhancement for settab in matrixdbfactory #147

@bybai

Description

@bybai

Considering the following 2 points:

  1. When it is not update, use self.getDBInst().cleartab(tabs) clean up DB, DB is empty. But in import process, settab call df.cleartab(tabdict[key].keys(),[key]) in for loop to execute db query to clean table again.

  2. If there are many nodes, settab call cleartab in each node to clear switch table, but there is only one switch table. We only need clear up switch table once.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions