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
SET STATISTICS ALL, REBUILD INDEX INDEX_NAME and REBUILD INDEXES [CORE1580] #1999
Comments
Commented by: @AlexPeshkoff Rebuild of index is done using In order to do it (or set statistics) for all indices is easily done in stored procedure, using select from rdb$indices and execute statement. Taking it into an account, changed the priority. |
Modified by: @AlexPeshkoffpriority: Major [ 3 ] => Minor [ 4 ] |
Commented by: @livius2 >> Rebuild of index is done using yes but : 1. we can not inactive system indexes this is good :) but can be included in SET STATISTIC statement |
Commented by: @pcisar Except rebuild of system indices, this really could be easily done in stored procedure. But this is not single case when useful "higher level" actions could be performed or interesting information could be gathered from system tables using SP's or Views. I think that we could provide such useful extensions as build-in database metadata (another layer on top of system tables considered as standard part of the database) or at least as standard enhancement scripts that could be executed on new database to enhance it's capabilities. |
Commented by: Smirnoff Serg (wildsery) > I think that we could provide such useful extensions as build-in database metadata (another layer on top of system tables considered as standard part of the database) or at least as standard enhancement scripts... Maybe some execute blocks in \examples\execute_blocks\ will be sufficient? |
Commented by: @dyemanov Why would you need to rebuild the indices at all? |
Commented by: @pcisar To make them dense (use index pages in full) again after mass update ? |
Commented by: @cincuranet AFAIK if you need to rebuild index "structure" you don't need to inactive it. Just calling active is good. So it works for PK too. |
Modified by: @pcisarWorkflow: jira [ 13395 ] => Firebird [ 14007 ] |
Commented by: @livius2 >>Jiri Cincura - [13/Nov/07 04:31 PM ] can this be used on working database (when users are connected) |
Commented by: @cincuranet Yes, you can use it on active database. |
Commented by: @livius2 Really? - what with FireBird 1.5 I do this on working database |
Commented by: Diogo Andre Loff (dloff) como baixa |
Commented by: @luronumen You can recalculate statistics for all indexes using this simple SQL statement: SET TERM ^ ; |
Submitted by: @livius2
Votes: 4
Add posibility to update statistics for all indexes in one comand like:
Set Statistixs ALL;
and Add posibility to rebuild index (also system) like:
REBUILD INDEX INDEX_NAME;
and the same as above rebuild all
REBUILD INDEX ALL;
The text was updated successfully, but these errors were encountered: