Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] globalMap Vs context

Dear All,
Can anyone explain me about the difference between accessing the globalMap variables Vs context variables?
What is the main difference between these two?
Thanks in advance.
Regards,
Vijay Muthiah
Labels (2)
1 Solution

Accepted Solutions
alevy
Specialist
Specialist

Also:
context variables must be pre-defined to be used in a job, although their value can be changed during run-time. Their value can also be passed into the job as a parameter when it starts.
globalMap variables can be defined during run-time - name and value - and need not exist at all to be used (will just be treated as null). They cannot be passed into the job as a parameter when it starts.

View solution in original post

4 Replies
Anonymous
Not applicable
Author

hi
GlobalMap variable can be used only inside the job,where as context can be used outside the job like parentjob to subjob
alevy
Specialist
Specialist

Also:
context variables must be pre-defined to be used in a job, although their value can be changed during run-time. Their value can also be passed into the job as a parameter when it starts.
globalMap variables can be defined during run-time - name and value - and need not exist at all to be used (will just be treated as null). They cannot be passed into the job as a parameter when it starts.
Anonymous
Not applicable
Author

Also, the globalMap is copied around alot in the generated code. If you jam a ton of stuff in there, you will begin to notice performance problems.
Anonymous
Not applicable
Author

John,
So does that mean, using the context variables over globalMap would improve the performance..?