Navigation Menu

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

Very slow execution of a script that creates a lot of metadata [CORE2933] #3316

Closed
firebird-automations opened this issue Mar 20, 2010 · 15 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Edgard Candido de Oliveira Neto (econeto)

Relate to CORE3237

Attachments:
core_2933_script.rar

Votes: 3

When I execute scripts to create metadata (tables, sp, views,...) the server run very slow.

A script that runs at FB 2.0.5 (takes about 4minutes 24seconds) and runs at FB 2.1.3 (takes about 4minutes 51 seconds), at FB 2.5 RC2 takes more than ONE HOUR !

I tested many scripts files, and the results is the same.

If necessary, I can to send the files that I used.

My email is mailto:econeto@gmail.com

Thanks
Edgard de Oliveira
Rio de Janeiro - BRAZIL

Commits: 1f5e2c7 83f36de 6076393 c62a17c c6b776c 48d910f

====== Test Details ======

Provided test contains script with unacceptable size (> 8Mb). Any idea about implementing something similar with the same effect will be appreciated. But I still can`t guess how estimate that time of creating database objects is good or bad (can`t connect at the same time to some other FB instance using fbtest).

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

Please attach your scripts here or (if they're not for public access) send them to me: firebird2 at yandex dot ru.

@firebird-automations
Copy link
Collaborator Author

Commented by: Edgard Candido de Oliveira Neto (econeto)

Dmittry

I just sent the scripts by your email.

@firebird-automations
Copy link
Collaborator Author

Commented by: Edgard Candido de Oliveira Neto (econeto)

Follows attached files

@firebird-automations
Copy link
Collaborator Author

Modified by: Edgard Candido de Oliveira Neto (econeto)

Attachment: core_2933_script.rar [ 11599 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: Edgard Candido de Oliveira Neto (econeto)

By analizing the results, I think the problem is at ALTER PROCEDURE statement.

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Actually, the problem seems to be when engine tries to delete records from RDB$FIELDS. That happens when altering procedures with parameters. And it doesn't looks as a PLAN problems.

Also, I see various ALTER TABLE being very slow, but reconnecting seems to make them faster again.

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

As far as I see, it is the optimization issue. And it's known to me, although I hoped to have it solved already. I will be trying to address this once more.

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: In Progress [ 3 ] => Open [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5 RC3 [ 10381 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

summary: FB2.5RC2 - Very slow to execute script to create any metadata (database, tables storage procedures, ...) => Very slow execution of a script that creates a lot of metadata

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Link: This issue relate to CORE3237 [ CORE3237 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: Not enough information

Test Details: Provided test contains script with unacceptable size (> 8Mb). Any idea about implementing something similar with the same effect will be appreciated. But I still can`t guess how estimate that time of creating database objects is good or bad (can`t connect at the same time to some other FB instance using fbtest).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment