Splunk Dev

iteration through ResultsReaderXml is slow - java sdk

kumarroopesh
New Member

Hi,

When I iterate through ResultsReaderXml, it takes 8-10 seconds to iterate through 500-700 events.

The simple code 

ArrayList<Event> rows = new ArrayList<Event>();
for (Event eventObject : resultsReader) {
rows.add(eventObject);
}

 takes 8-10 seconds. Please suggest.

Labels (1)
0 Karma
Get Updates on the Splunk Community!

Pro Tips for First-Time .conf Attendees: Advice from SplunkTrust

Heading to your first .Conf? You’re in for an unforgettable ride — learning, networking, swag collecting, ...

Raise Your Skills at the .conf25 Builder Bar: Your Splunk Developer Destination

Calling all Splunk developers, custom SPL builders, dashboarders, and Splunkbase app creators – the Builder ...

Hunt Smarter, Not Harder: Discover New SPL “Recipes” in Our Threat Hunting Webinar

Are you ready to take your threat hunting skills to the next level? As Splunk community members, you know the ...