fokichef.blogg.se

Praat formula reduce db
Praat formula reduce db












praat formula reduce db
  1. #Praat formula reduce db update
  2. #Praat formula reduce db full

My gut feeling however says, that it's not the compression optimisation. Why your example table changed all that much would need to be looked at in detail. But it will be done if the table contents massively fluctuates. The automatic compression optimisation therefore is calibrated to be rather not too proactive, in order to not disturb system operations all too much. It's the change of data distribution in each column of a table and relative to each other that makes the difference here. It takes time to do that and uses resources that could be used for business transaction instead.Īlso, it's not possible upfront to determine if and how large a benefit would actually turn out to be.īesides, it's not so much the pure change of data volume that leads to compression methods not being optimal anymore. The obvious reason for not permanently trying to use the best possible compression is of course: that's computationally expensive. So, just in case anyone uses the script and gets in trouble: I told you so. Knowing the effects of such recommendations, I can see another wave of support tickets running at the colleagues in SAP HANA support.Īnyway - now that this little loop script has been published users will use it forever and likely not heed any further warnings (like this current one). If it actually reaches 30% on a regular basis is questionable though.Īnd since the script just applies a set of operations without actually analysing the current state of the system it really is a sledgehammer approach and reminds me a lot of the recommendations for index-rebuilds, defrags and CBO stats-recollections that where/are so common for e.g. Of course the script will lead to a reduction of space usage. This should actually not be the case for normal administrators.

#Praat formula reduce db update

Technically you could actually restart SAP HANA during any of the operations, but that will of course require extended startup times due to the required recovery.įor the script itself, in order to run, the user running it must have the UPDATE privilege on the tables of the underlying schema. Since some of the activities will impose locks on various levels (table locks and system wide savepoint locks) running it during production hours, might end up in a halted system.

praat formula reduce db

Running it on a test/QA system will only allow a time estimation if the system nearly has the same data and similar load during the run. While you put the caveats in red letters to provide warning, I'd say that's not really providing enough information on the operations executed by the script. I consider this type of blog "selling snake-oil" or the "magic bullet" (or whatever you want to call the miraculous thing to improve your situation). They definitively add to this community, so I am happy to have you blogging here again. call “_SYS_BIC”.”dba_reorg”(‘INSERT_SCHEMA_NAME_HERE’) ĬREATE PROCEDURE “_SYS_BIC”.”dba_reorg”(IN pi_schema VARCHAR(60)) LANGUAGE SQLSCRIPT ASĮXEC ‘UPDATE “‘ || :pi_schema || ‘”.”‘ || cur_tablename.TABLE_NAME || ‘” WITH PARAMETERS (‘OPTIMIZE_COMPRESSION’=’FORCE’)’ ĮXEC ‘ALTER SYSTEM RECLAIM VERSION SPACE’ ĮXEC ‘ALTER SYSTEM RECLAIM DATAVOLUME 110 DEFRAGMENT’ įirst of all: thanks for sharing your experiences with SAP HANA. After creating the procedure you can run it with this statement: Thanks to Lloyd Palfrey, who actually wrote it.

#Praat formula reduce db full

  • Complete a full backup after the script, and restart HANA to reclaim memory.
  • Do not restart HANA during this operation.
  • Use this script at your own risk, like any DDL statement it could cause issues.
  • Run it at a quiet time when data loads are not running.
  • Run this script in a QA system before production, for test purposes and so you know how long it will take.
  • It takes some time to run (18h in our case).Ī few caveats (these are general best practices, but I have to point them out)! This script takes care of all that and cleans up the system. In addition, objects can be fragmented and use more disk space than is really required. In older databases that have a lot of data loaded since the initial installation, it can mean that the compression is suboptimal. What happens is that HANA chooses the compression type of a column store object when it creates it, and only occasionally re-evaluates the compression type. It will also substantially decrease startup time, decrease backup time, and increase performance. In a productive HANA system we saw disk footprint reduction from 2.9TB to 1.89TB and in-memory footprint reduction by over 100GB. In that scenario, it’s possibly the most useful thing you will see all year for a HANA devop. This script is only useful if you have a HANA system which was installed with an older revision (SPS01-07) and you have upgraded it a bunch of times and it’s now on a newer release (SPS08-10). Lately a few people have kindly commented that they enjoyed reading my content, which is being nicer to me than I deserve. I didn’t write enough blogs last year, and felt like I abandoned SCN a bit.














    Praat formula reduce db