saving large number of nodes | Community
Skip to main content
Level 2
September 10, 2018
Solved

saving large number of nodes

  • September 10, 2018
  • 3 replies
  • 1122 views

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.
Best answer by arunpatidar

Hi,

Please check below post

Sling - Who is closing my JCR Session? - DeveloperHub blog | Thomas Joseph

3 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
September 10, 2018
edubey
Level 10
September 11, 2018

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

joerghoh
Adobe Employee
Adobe Employee
September 11, 2018

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

Jörg