Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

performance enhancement for settab in matrixdbfactory #147

Open
bybai opened this issue Nov 1, 2018 · 1 comment
Open

performance enhancement for settab in matrixdbfactory #147

bybai opened this issue Nov 1, 2018 · 1 comment
Milestone

Comments

@bybai
Copy link
Contributor

bybai commented Nov 1, 2018

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.

@robin2008
Copy link
Member

@bybai what this status of this issue? I see it is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants