[resolved] globalMap Vs context

Highlighted
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..?

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now