Expand my Community achievements bar.

SOLVED

saving large number of nodes

Avatar

Level 2

I am trying to save around 1000 product nodes. before saving I am fetching these record from external system and processing in scheduler. tryed saving node one by one after processing completes for one node, session was loosing data in between and one node has lot of data. So trying multiple times session.save for one node data after certain amount of precessing is done.

so with this approach getting a error "This session has been closed" randomly. Some time it is working but not always.

Any suggestions on this?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
3 Replies

Avatar

Correct answer by
Community Advisor

Avatar

Level 10

Quick question: Are you sure "This session has been closed" is taking the stack trace to your code?

Avatar

Employee Advisor

If you see such strange behavior, something's definitly wrong. Can you post the relevant piece from the logs, plus the code?

Jörg