QlikSense Incremental Load: The QVD Strategy That Multiplies Performance - featured image

Publications

Qlik Sense Incremental Load: The QVD Strategy that Multiplies Performance

Hector Pincheira

Hector Pincheira

CIO | CTO
Digital Strategy & Technology Innovation

items

There is an uncomfortable truth in most QlikSense implementations that have been in production for more than two years: the load script is a monument to «we left it like that because it works». It works, yes. But it runs for three hours. Or five. And every time the business asks for «one more metric», someone sighs, adds a full LOAD and blesses the overnight cron job.

QlikSense Incremental Load - The QVD strategy that accelerates
Incremental Load — The QVD strategy that accelerates

That is not the technical problem. It is the cultural problem. Because meanwhile, companies with mature BI decide 2.5 times faster and report 40% more ROI on their analytics investments. And they do not get there with bigger servers. They get there with QlikSense incremental load properly designed, a clean QVD architecture, and the discipline not to reload everything they already loaded yesterday.

The invisible cost of reloading the universe every night

Reloading the full database every night carries a cost few measure: lost operating window, pressure on the source ERP, fragility in the face of transient errors and an accumulated perception that «QlikSense is slow». It is not that QlikSense is slow. It is that it is reading 18 million rows to detect the 4,200 that changed.

The technical fact is blunt: an optimized QVD load is roughly 10 times faster than a standard load, and up to 100 times faster than reading straight from the database. When a full reload takes 3 hours and a well-built incremental takes 4 minutes, you are not optimizing. You are freeing up an entire decision window for your organization.

89% of executives plan to increase their analytics investment over the next three years. If that budget goes to more licenses and not to a solid data model, the problem is not solved, it is scaled.

QlikSense incremental load: the pattern that changes the rules

The concept is simple: on each reload, read from the source only the new or modified records since the last run. Combine that delta with the historical QVD, handle the logical deletions, and store the consolidated QVD again. Execution goes from minutes to seconds per table.

But the pattern only works if the source table meets two conditions: having a unique primary key and a reliable modification date . If your ERP does not deliver them, this turns into archaeology, not engineering.

Classic incremental load script

// === QlikSense incremental load: Facturas table ===
// 1. Retrieve the last loaded date
LET vUltimaFecha = '1900-01-01 00:00:00';
IF FileSize('lib://QVDs/Facturas.qvd') > 0 THEN
   FechaMaxima:
   LOAD Max(FechaModificacion) AS UltimaFecha
   FROM [lib://QVDs/Facturas.qvd] (qvd);
   LET vUltimaFecha = Timestamp(Peek('UltimaFecha', 0, 'FechaMaxima'));
   DROP TABLE FechaMaxima;
END IF;
TRACE Loading invoices modified since: $(vUltimaFecha);
// 2. Load ONLY new or modified records
FacturasDelta:
LOAD
   FacturaID,
   ClienteID,
   Fecha,
   Monto,
   Margen,
   FechaModificacion,
   EstadoRegistro
SQL SELECT
   FacturaID, ClienteID, Fecha, Monto, Margen,
   FechaModificacion, EstadoRegistro
FROM dbo.Facturas
WHERE FechaModificacion > '$(vUltimaFecha)';
// 3. Concatenate history EXCLUDING the IDs that came in updated
IF FileSize('lib://QVDs/Facturas.qvd') > 0 THEN
   CONCATENATE (FacturasDelta)
   LOAD *
   FROM [lib://QVDs/Facturas.qvd] (qvd)
   WHERE NOT Exists(FacturaID);
END IF;
// 4. Remove records flagged as logically deleted
NOCONCATENATE
Facturas:
LOAD * RESIDENT FacturasDelta
WHERE EstadoRegistro <> 'D';
DROP TABLE FacturasDelta;
// 5. Store the consolidated QVD
STORE Facturas INTO [lib://QVDs/Facturas.qvd] (qvd);

Five blocks. A repeatable pattern for every transactional table in the ERP. The logic is the same, what changes is the key field and the date. This is not clever code. It is engineering discipline translated into script.

💡 Key point: The trick is in the WHERE NOT Exists(FacturaID). It guarantees old versions are discarded and only the new ones remain. Without that line, you end up with duplicates and a dashboard that lies.

ApplyMap: the silent ally of performance

The second big mistake in QlikSense data models is solving lookups with JOIN. It works, but it inflates the table, slows the load and eats memory. ApplyMap() solves the same thing, without generating intermediate tables, in a fraction of the time.

// 1. Build a mapping (key, value)
MapClienteSegmento:
MAPPING LOAD
   ClienteID,
   Segmento
FROM [lib://QVDs/Clientes.qvd] (qvd);
// 2. Apply the mapping in the main load
Facturas:
LOAD
   FacturaID,
   ClienteID,
   ApplyMap('MapClienteSegmento', ClienteID, 'NoSegment') AS SegmentoCliente,
   Fecha,
   Monto
FROM [lib://QVDs/Facturas.qvd] (qvd);

Three concrete advantages over a traditional LEFT JOIN:

  • Speed: ApplyMap uses an in-memory hash. JOIN rebuilds a new table.
  • Control: the third parameter defines what happens when there is no match. JOIN leaves you with silent NULLs.
  • Model cleanliness: it does not generate orphan fields or unwanted cross associations.

On tables with millions of records, the difference is minutes against seconds. In practice, a load that took 47 minutes with five chained JOINs can drop to under 6 minutes by replacing them with ApplyMap. It is not magic. It is understanding how the engine works.

QlikSense incremental load QVD architecture for high enterprise performance
A well-designed QVD architecture is the difference between BI that scales and BI that collapses.

Three-layer architecture: the professional standard

Incremental load works best when it lives inside a three-layer QVD architecture. This is not academic orthodoxy. It is what separates a hobbyist implementation from a production one.

  1. Extract layer (RAW): raw QVDs, one per source table, minimal transformation. This is where the real incremental load lives. Its mission: shield the ERP from heavy queries.
  2. Transform layer (BUSINESS): derived QVDs with business logic applied (calculations, mappings, master calendar, normalizations). It loads fast because it starts from QVDs, not from the database.
  3. Application layer (DATA MODEL): the final associative model the app consumes. It loads in seconds because everything is already processed.

This pattern solves an expensive problem: when the business changes a calculation rule, you do not reload the entire ERP. You only recompile the Transform layer. The Extract layer stays intact.

Business impact: what smart reloading frees up

Moving from full load to incremental with a QVD architecture produces three direct impacts on operations:

First, decision windows: dashboards refreshed every hour instead of once a day. The 9:00 AM committee no longer debates yesterday's data; it debates data from 30 minutes ago.

Second, room to grow: your data volume can grow 10× without breaking the load window. Companies with real-time analytics report 29% better decision speed and 21% lower operating costs. This is what enables those numbers.

Third, freedom for the BI team: you stop firefighting loads and start building new metrics. The team moves from operating to creating value. Translated into business terms, that is turning a cost center into an intelligence center.

If you are leading a BI project and want to review how other companies are redefining their data architecture, I recommend my articles on QlikSense applied to real operations.

Common mistakes that destroy performance

⚠️ Common error 1: Using the transaction date (Fecha) instead of the modification date (FechaModificacion) as the incremental filter. Result: you lose records edited after the original date. The correct field is always the ERP audit field.
⚠️ Common error 2: Forgetting to handle deletions. If your ERP deletes records physically, you need a control table or a logical deletion field. Without this, your QVDs accumulate ghost records forever.
⚠️ Common error 3: Breaking QVD optimized load mode by using WHERE with complex expressions or transformations. Optimized mode only works with LOAD * and minimal filters. Any transformation disables it and speed drops 10×.
⚠️ Common error 4: Not versioning the scripts. Without version control, a reload that breaks at 2 AM turns into digital archaeology the next day. Git is basic, not optional.

Best practices from the trenches

First, always include logging. Every reload must write a record: how many rows it read, how many it inserted, how many it updated, how long it took. Without logging, optimizing is guessing.

Second, protect the first load. The initial load can be heavy. Do it in a controlled, separate window. Once the initial QVD is created, the incrementals are light.

Third, monitor optimized mode. Enable script logging in the QlikSense Management Console. The line «(qvd optimized)» must appear when loading QVDs. If it does not appear, some transformation is breaking the mode and you need to fix it.

Fourth, build a shared master calendar in the Transform layer. One single calendar table consumed by every model. It avoids period inconsistencies across apps and reduces duplicated code in each project.

Fifth, document the pattern, not just the code. The next developer has to understand why it was designed this way, not only what it does. Without pattern documentation, the model degrades in six months.

QlikSense incremental load optimized load script for industrial companies
The load script is the true heart of a QlikSense project. Where there is no discipline, there is chronic frustration.

Strategic conclusion: your data model defines your decision speed

If your QlikSense takes hours to reload, the problem is not the server. It is the pattern. The difference between a company that decides cold with yesterday's data and one that decides hot with data from 30 minutes ago is not how much they spent on licenses. It is how much they invested in thinking the architecture through.

The global BI market will reach USD 54.9 billion in 2026, growing 12.4% a year. But that growth does not automatically translate into competitive advantage. The companies that win are the ones that understand that a five-hour reload is a decision postponed by five hours. And in markets that move in minutes, that is the difference between leading and reacting.

QlikSense incremental load is not an advanced technique. It is the professional minimum. If your model does not have it, you do not have mature BI. You have a pilot project growing old.

How many decisions is your organization postponing because QlikSense has not finished loading yet? That is the question that defines whether your BI project scales or dies slowly.

Most Read

QlikSense Hierarchy: parent-child chart of accounts expanded by levels
QlikSense Hierarchy: the Chart of Accounts That Doesn't Add Up
QlikSense Sum TOTAL: share of each family over the total
QlikSense Sum TOTAL: the Percentage That Changes When You Filter
SAP Business One Inventory Revaluation - featured image of the tutorial
SAP Business One Inventory Revaluation: Fix Wrongly Loaded Costs
Empty chamber with wooden benches: the counterweight that required being present to be used
The Veto You Had to Say in Person: Your Decisions With No Counterweight
SAP Business One customizations - featured image of the pre-upgrade audit tutorial
SAP Business One Customizations: Pre-Upgrade Audit
SAP Business One Customer Concentration - featured image of the tutorial
SAP Business One Customer Concentration: Measure Your Risk with SQL

RELATED ARTICLES