Partial loading - as name specify the partial load instead of doing incomplete load, we will do incomplete load. Some times happen that we made changes to the database. The changes in the form of
- Create a new table
- New attributes added in the table
Now we want that table and new fields should reflect in qlikview datamodel. So Generally we do - we do reload off document.
But it is not a good deal if reload completes in hours. It will waste all the time.
So to save the time QlikView provide the partial load - Instead of reload we will load only those tables which had been modified in the database. This approach is called partial reload.
Advantage-
- While partial reload all other load statement and scripts remain untouched.
Means partial will execute only those command where it find "ADD", "REPLACE" as a prefix to LOAD statement.
How partial Reload can be intialize
- ctrl+shift+r
- File > partial reload.
Two Approaches are there:
- use "ADD", "REPLACE" in front of LOAD statement (partial reload and reload both can execute this statement)
- We can also use "ADD ONLY", "REPLACE ONLY" instead of "ADD", "REPLACE"
By adding "ONLY" , then the command will execute only and only when we do partial Reload of document. Reloading of document will not affect these Load statements.
- AND we can use IsPartialReload() function:
it will return -1 --- when we do partial reload (ctrl+shift+r)
return 0 ---- when we do reload (ctrl+r)
--With partialreload function .. put below code in script editor
if (IsPartialReload() = -1 ) then
add LOAD GRADE,
LOSAL,
HISAL;
SQL SELECT *
FROM SCOTT.SALGRADE;
end if;
Above code will be execute only and only if we do partial reload.
-- With and ADD and REPLACE keyword
//below commented statement is load once with (ctrl +R), it load 3 column in data model.
//dasf:
//replace
//LOAD SRNO,
// CDATE,
// TYPE;
// SQL SELECT *
//FROM SCOTT."TEST";
dasf:
replace only
LOAD SRNO,
CDATE,
TYPE ,SR;
SQL SELECT *
FROM SCOTT."TEST";
fligh:
add only
LOAD "PRIMARY_KEY",
"CREATED_DATE",
"UPDATED_DATE",
YEAR,
MONTH,
"AIRCRAFT_TYPE_ID",
"DEPARTURES_SCHEDULED",
"DEPARTURES_PERFORMED",
"AVAILABLE_SEATS",
"TRANSPORTED_PASSENGERS",
"TRANSPORTED_FREIGHT";
SQL SELECT *
FROM SCOTT."FLIGHT_DATA_1";
- Now save it and do partial reload (ctrl+shift+r)
It is suggest to check the Data model along with every reload.
- Create a new table
- New attributes added in the table
Now we want that table and new fields should reflect in qlikview datamodel. So Generally we do - we do reload off document.
But it is not a good deal if reload completes in hours. It will waste all the time.
So to save the time QlikView provide the partial load - Instead of reload we will load only those tables which had been modified in the database. This approach is called partial reload.
Advantage-
- While partial reload all other load statement and scripts remain untouched.
Means partial will execute only those command where it find "ADD", "REPLACE" as a prefix to LOAD statement.
How partial Reload can be intialize
- ctrl+shift+r
- File > partial reload.
Two Approaches are there:
- use "ADD", "REPLACE" in front of LOAD statement (partial reload and reload both can execute this statement)
- We can also use "ADD ONLY", "REPLACE ONLY" instead of "ADD", "REPLACE"
By adding "ONLY" , then the command will execute only and only when we do partial Reload of document. Reloading of document will not affect these Load statements.
- AND we can use IsPartialReload() function:
it will return -1 --- when we do partial reload (ctrl+shift+r)
return 0 ---- when we do reload (ctrl+r)
--With partialreload function .. put below code in script editor
if (IsPartialReload() = -1 ) then
add LOAD GRADE,
LOSAL,
HISAL;
SQL SELECT *
FROM SCOTT.SALGRADE;
end if;
Above code will be execute only and only if we do partial reload.
-- With and ADD and REPLACE keyword
//below commented statement is load once with (ctrl +R), it load 3 column in data model.
//dasf:
//replace
//LOAD SRNO,
// CDATE,
// TYPE;
// SQL SELECT *
//FROM SCOTT."TEST";
dasf:
replace only
LOAD SRNO,
CDATE,
TYPE ,SR;
SQL SELECT *
FROM SCOTT."TEST";
fligh:
add only
LOAD "PRIMARY_KEY",
"CREATED_DATE",
"UPDATED_DATE",
YEAR,
MONTH,
"AIRCRAFT_TYPE_ID",
"DEPARTURES_SCHEDULED",
"DEPARTURES_PERFORMED",
"AVAILABLE_SEATS",
"TRANSPORTED_PASSENGERS",
"TRANSPORTED_FREIGHT";
SQL SELECT *
FROM SCOTT."FLIGHT_DATA_1";
- Now save it and do partial reload (ctrl+shift+r)
It is suggest to check the Data model along with every reload.
No comments:
Post a Comment