Skip to main content
Solved

how can i write to two databases symultaneously

  • January 29, 2018
  • 3 replies
  • 178 views

f.kemminje
Contributor
Forum|alt.badge.img+11

Hi Team,

I have 7 million records coming out from source and i need to write to two databases simultaneously.

why simultaneous:

if i write one writer and the second writer will be waiting first one to complete. And in between memory issue comes and fme hangs or stops abruptly.

so I need to write to two databases at a time. need serial connection to the writers.

not parallel.

can anyone please help me.

Best answer by f.kemminje

@erik_jan

I like the final option,

But if the writers are two different databases, can i send all the attributes after writing to featurewriter1 thru summary port?

View original
Did this help you find an answer to your question?

3 replies

erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • January 29, 2018

If memory is an issue, writing to two databases, could you write to one database? Then use a second workspace to read from the first database and copy to the second?

I know this seems too much work, but sometimes the amount of data limits the options.

Another option, that I have used before, is writing to FFS file as an intermediate step and then write that data to the database(s).

The final option (if you want to do it in one workspace) is using two FeatureWriter transformers. They allow streaming, where actual writers will store data in memory.


f.kemminje
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • Best Answer
  • January 29, 2018

@erik_jan

I like the final option,

But if the writers are two different databases, can i send all the attributes after writing to featurewriter1 thru summary port?


erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • January 29, 2018
f.kemminje wrote:

@erik_jan

I like the final option,

But if the writers are two different databases, can i send all the attributes after writing to featurewriter1 thru summary port?

That will be an option in FME 2018 (data output after FeatureWriter. The Summary port writes a summary like the stats in the log file. I don't think that is what you want.). But can you send all features to two different FeaureWriter transformers.

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings