Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Fix for 'too many tables open' issue on edb#59

Open
cibboy wants to merge 2 commits intobgelens:devfrom
cibboy:edb-tables-fix
Open

Fix for 'too many tables open' issue on edb#59
cibboy wants to merge 2 commits intobgelens:devfrom
cibboy:edb-tables-fix

Conversation

@cibboy
Copy link

@cibboy cibboy commented Dec 11, 2022

Hi @bgelens,
I may have found a way to fix the "Cannot open any more tables" error for edb files with too many entries (see #58). I admit it is not based on an actual investigation looking for the root cause, but empirical testing.

What I did was basically modify the Get-DSCPullServerESERecord to prevent a lookup of table columns for every entry:

  • Move GetTableColumns to the 'begin' phase, saving the columns in an array
  • Use such array in the 'process' phase, when for each entry the code loads the entry's values

Apparently this solves the immediate issue. I have no idea why this would make a change since, as I said, I haven't figured out the root cause, so there may be unintended side effects. I did a few practical tests and everything seems to be working. If you can run a few tests yourself it would be much appreciated!

Fixes 'too many tables open' issue on edb by preloading table columns in
function begin (right after mount and table open) and using them in
following loops.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant