[resolved] globalMap Vs context

One Star

[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

Accepted Solutions
Seven Stars

Re: [resolved] globalMap Vs context

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.

All Replies
One Star

Re: [resolved] globalMap Vs context

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

Re: [resolved] globalMap Vs context

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.

Re: [resolved] globalMap Vs context

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.
One Star

Re: [resolved] globalMap Vs context

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