Types of optimisation – each explained on video
Changing structures, SQL queries, processing workflows and individual parts of the software brings considerable runtime gains: great potential impact, reasonable costs, high sustainability.
Passive tuning
Structural optimisation
As a video file: MP4 landscape · MP4 portrait · Subtitles
We improve the structures beneath your application – data storage, data model, indexes, configuration and maintenance. The application itself remains unchanged; weaknesses in the software are compensated. Structural optimisations are often the basis for further active optimisations.
Active tuning
Software optimisation
As a video file: MP4 landscape · MP4 portrait · Subtitles
We change queries, processing workflows and parts of programs. Optimised SQL queries save 93% of runtime on average, optimised processing workflows 70% on average – hours often become seconds.
Slow SQL query? Go to SQL optimisation or the free SQL check.
As a video file: MP4 landscape · MP4 portrait · Subtitles
Structural optimisation · passive tuning
System clean-up
Old logs, orphaned tables, unused indexes and legacy data slow down every system. We clean up – safely and traceably.
Approach
- Inventory: which objects, data and logs are still in use?
- Remove orphaned tables, views, functions and duplicate indexes
- Archive legacy data instead of deleting it – with retention periods
- Limit logs and temporary data automatically
Result: less storage, shorter backups, faster queries – and a system that is easy to oversee again.
Video transcript (0:39)
- System clean-up: making room so that the database can breathe again.
- Over the years, ballast accumulates – it costs storage, backup time and computing power.
- We find the ballast, remove it safely and compact the data in use.
- Legacy data is archived, not destroyed – retention periods are observed.
- datatrend – Solutions for more IT-performance.
As a video file: MP4 landscape · MP4 portrait · Subtitles
Structural optimisation · passive tuning
Optimisation of the system configuration
Operating system, memory, storage and network are often still on factory settings. We adjust them to your actual load.
Approach
- Measure load: CPU, memory, input/output, network
- Adjust operating system and file system parameters
- Align storage and network with the database
- Before/after measurement under real load
Result: more throughput on the same hardware – an expensive new purchase can often be avoided.
Video transcript (0:39)
- Optimisation of the system configuration: the same hardware, significantly more performance.
- Many servers run with default values that do not match the actual load.
- We measure the load and set every parameter appropriately – throughput increases.
- Every change is measured and documented – and can be reversed at any time.
- datatrend – Solutions for more IT-performance.
As a video file: MP4 landscape · MP4 portrait · Subtitles
Structural optimisation · passive tuning
Restructuring of data storage
Data, indexes and logs are often mixed up on a single storage device. We reorganise the storage – with tablespaces and partitions.
Approach
- Distribute data, indexes and logs across separate storage areas (tablespaces)
- Partition large tables, e.g. by year or tenant
- Place frequently read data on fast storage
- Queries only read the required partition
Result: queries read a fraction of the data. At a bank, structural optimisation reduced database communication by 99.21%.
Video transcript (0:34)
- Restructuring of data storage: order on the storage devices.
- Data, indexes and logs are placed on separate storage areas. Large tables are partitioned – a query only reads the partition it needs.
- Case study bank: a migration was estimated at six weeks. After structural optimisation it took 8 hours.
- datatrend – Solutions for more IT-performance.
As a video file: MP4 landscape · MP4 portrait · Subtitles
Structural optimisation · passive tuning
Database model optimisation
A data model that has grown over time forces every query through many joins. We simplify the model and optimise the objects stored in the database, such as functions and views.
Approach
- Analyse the data model and access paths
- Merge or split tables in a targeted manner
- Define suitable data types and keys
- Optimise functions, views and triggers in the database
Result: fewer joins per query, smaller tables, faster and more comprehensible access.
Video transcript (0:33)
- Database model optimisation: a model that fits the queries.
- A branched model with many joins becomes a lean model: every query only needs a few joins.
- Functions, views and triggers in the database are also checked and accelerated.
- datatrend – Solutions for more IT-performance.
As a video file: MP4 landscape · MP4 portrait · Subtitles
Structural optimisation · passive tuning
Index optimisation
Without a suitable index, the database reads the entire table. With a covering index, it only reads the index – the biggest lever of all.
Approach
- Identify slow queries and their access paths
- Create covering indexes so that only the index is read (index-only scan)
- Remove duplicate and unused indexes
- Keep an eye on the write load
Result: instead of millions of rows, the database reads a few blocks. In a call centre software, response times fell from 80 seconds to less than one second.
View SQL optimisation from €250
Video transcript (0:34)
- Index optimisation: the fastest way to the data.
- Without an index, the database reads the entire table block by block. With a covering index, it finds the data in a few steps – and only reads the index.
- Case study telecommunications: optimised database access cut the response time of the call centre software from 80 seconds to less than one second.
- datatrend – Solutions for more IT-performance.
As a video file: MP4 landscape · MP4 portrait · Subtitles
Structural optimisation · passive tuning
Automated system maintenance
Databases get slower over time: statistics become outdated, tables and indexes bloat. Automatic maintenance keeps performance high permanently.
Approach
- Update statistics regularly
- Reorganise tables and indexes (e.g. VACUUM, rebuild)
- Automate backups and restore tests
- Monitoring with a warning before things get slow
Result: consistently short response times instead of a creeping loss of performance – without manual effort.
Video transcript (0:33)
- Automated system maintenance: so that fast stays fast.
- Every night, statistics, reorganisation, index maintenance and backup run automatically. Without maintenance, response times rise week by week – with maintenance they stay flat.
- Monitoring warns before users notice anything.
- datatrend – Solutions for more IT-performance.
As a video file: MP4 landscape · MP4 portrait · Subtitles
Structural optimisation · passive tuning
Optimisation of the server and database configuration
Memory for buffers and sorting, parallelism, connections: the database parameters decide whether the hardware is actually used.
Approach
- Distribute memory sensibly: buffers, sorting, hash, operating system cache
- Enable parallel queries across all processor cores
- Pool connections (connection pooling)
- Parameters per database: PostgreSQL, Oracle, DB2, MS SQL Server, MySQL
Result: the existing hardware is fully utilised. In the billing project, the number of CPUs required – together with process and SQL optimisation – fell from 72 to 2.
Video transcript (0:34)
- Optimisation of the server and database configuration.
- Before, most of the memory remains unused and only one core is working. After tuning, buffers, sort memory and cache are distributed appropriately – and all cores compute in parallel.
- Case study billing: together with process and SQL optimisation, the number of CPUs required fell from 72 to 2 – which saves licence costs.
- datatrend – Solutions for more IT-performance.
As a video file: MP4 landscape · MP4 portrait · Subtitles
Software optimisation · active tuning
Adapting database queries
SQL queries are usually written from a business perspective using standard means. With large volumes of data this leads to high load and long runtimes. We rewrite them according to fixed rules.
Approach
- Measure the execution of the query and find the expensive steps
- Reformulate the query according to our proven set of rules
- Recommend suitable indexes
- Compare runtime before and after
Result: the average runtime saving is 93%. Several hours often become a few seconds.
View SQL optimisation from €250
Video transcript (0:35)
- Adapting database queries: the same answer in a fraction of the time.
- The original query runs for more than an hour. Reformulated according to our set of rules and with a suitable index, it delivers the same result in seconds.
- The average runtime saving from optimised SQL queries is 93 percent.
- SQL optimisation is available from 250 euros per query, depending on complexity – order directly in the shop.
As a video file: MP4 landscape · MP4 portrait · Subtitles
Software optimisation · active tuning
Reorganisation of processing workflows
Processing workflows grow with every new requirement. The result is structures that have "grown" over time and run longer and longer. We reorganise the steps – in parallel wherever possible.
Approach
- Capture the sequence and dependencies of all steps
- Execute independent steps in parallel
- Merge duplicate work steps
- Optimise database access per step
Result: runtimes fall by 70% on average. Invoice generation at a telecommunications company took only 2 hours instead of 480 hours.
Video transcript (0:34)
- Reorganisation of processing workflows: faster step by step.
- Before, each step runs one after the other. Reorganised, independent steps run in parallel and duplicate steps are dropped – the overall process takes a fraction of the time.
- Case study billing: generating all telephone bills took more than 20 days – after the reorganisation, 2 hours.
- datatrend – Solutions for more IT-performance.
As a video file: MP4 landscape · MP4 portrait · Subtitles
Software optimisation · active tuning
Software adaptations
Many programs query the database record by record – thousands of times. We replace single-row access with set-based access and remove redundancies.
Approach
- Replace single-row access in loops with set-based access
- Remove duplicate calculations and calls
- Cache results sensibly
- Bring in our own technologies where the framework slows things down
Result: fewer calls, less network traffic, less load. For a bank's rating provision, the runtime fell from 172 to 2.5 hours.
Video transcript (0:34)
- Software adaptations: fewer calls, more performance.
- Before, the application sends ten thousand individual queries over the network. Adapted, it fetches all the data with a single set-based access.
- Case study bank: thanks to process, SQL and software optimisation, the daily rating provision took only 2.5 hours instead of 172 hours.
- datatrend – Solutions for more IT-performance.
As a video file: MP4 landscape · MP4 portrait · Subtitles
Software optimisation · active tuning
Limiting the volumes of data to be processed
Often the entire data set is processed in every run, even though only little has changed. We only process what is really necessary.
Approach
- Only process changed records (delta instead of full data set)
- Apply filters as early as possible
- Only read and transfer the columns needed
- Our own procedures for very large data sets
Result: at a bank, a proprietary datatrend procedure reduced the volume of data to be moved by 99.93% – screens opened in seconds instead of up to 1.5 hours.
Video transcript (0:34)
- Limiting the volumes of data to be processed.
- Instead of moving millions of records in every run, we filter early: only changed and really required data goes into processing.
- Case study bank: the volume of data to be moved fell by 99.93 percent. Screens opened in seconds instead of up to an hour and a half.
- datatrend – Solutions for more IT-performance.
As a video file: MP4 landscape · MP4 portrait · Subtitles
Software optimisation · active tuning
Aggregation
Reports and analyses add up millions of individual rows every time they are called. Pre-aggregated values deliver the same answer instantly.
Approach
- Pre-calculate totals per day, month or customer
- Create aggregation tables or materialised views
- Only aggregate new data
- Switch reports to the aggregated data
Result: reports read a few dozen rows instead of millions – and are ready in seconds.
Video transcript (0:33)
- Aggregation: answers that are already prepared.
- Instead of adding up all individual postings for every report, we aggregate them once a month. The report then reads twelve rows instead of millions.
- New data is continuously aggregated – the figures stay up to date.
- datatrend – Solutions for more IT-performance.
As a video file: MP4 landscape · MP4 portrait · Subtitles
Software optimisation · active tuning
Shifting the processing layer
Many applications fetch all data from the database and then do the calculations themselves. We move the processing to where the data is – into the database.
Approach
- Analyse processing: what is calculated where?
- Move set operations into SQL or database functions
- Only transfer the result over the network
- The other way round if necessary: distribute load from the database to application servers
Result: instead of millions of records, only the result travels over the network. Application, network and database are relieved.
Video transcript (0:33)
- Shifting the processing layer: compute where the data is.
- Before, all data travels from the database to the application and is processed there. After the shift, the database does the computing – only the result goes over the network.
- For each processing step, we choose the layer on which it is fastest.
- datatrend – Solutions for more IT-performance.
Which optimisation brings you the most?
We measure first and then tell you where the biggest lever is – with a binding price before we start.
The videos are illustrations. Figures marked "case study" come from anonymised customer projects.