saving large number of nodes | Community
Skip to main content
Level 2
Sep 10, 2018 4:34 PM UTC
Solved

saving large number of nodes

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Sep 10, 2018 8:24 PM UTC

3 replies

joerghoh
Employee
Sep 11, 2018 5:50 AM UTC

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

Jörg

Translate
edubey
Level 10
Sep 11, 2018 5:38 AM UTC

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

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Sep 10, 2018 8:24 PM UTC