Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
lucaL
Partner - Contributor II
Partner - Contributor II

Json Parsing extremly slow

Hi all,

I woul like to ask you if to parsing a really simple JSON String should take between 5 and 10 second wit tExtractJsonFields component.

I have this really simple json:

{
	"c1": "55665",
	"c2": 1757610940000,
	"c3": 381685,
	"c4": "28006354",
	"c5": 1774479600000,
	"c6": {
		"c61": "5",
		"c62": "N",
		"c63": 0,
		"c64": 60,
		"c65": 60
	}
}

This is passed to a subjbob via context variables, so the subjob has  a tFixedFlowInput that transform the context to a flow, then a tExtractJsonFields with "$" as Jsonpath query and a $.c1...c5 + $.c6.c61...c65 query for extracting each field. So the job continue with a tmap in order to compute couple of fields, and a tFileOutputDelimited to write out this row on a csv file.

Now, the time it takes to make this process is about 5 to 10 second, each time the job is called... I have another job that process a json with java code and the json.org library, and in 5 seconds it process hundreds of rows... This is the picture of the job:

lucaL_0-1758044480883.png

So, the question is: am I making something wrong? is there something I can do to speedup the processing?

Thanks,

Luca

Labels (1)
  • v8.x

1 Solution

Accepted Solutions
lucaL
Partner - Contributor II
Partner - Contributor II
Author

Hi all, thanks for the replies. After some other investingation I have found that the long time was not due to the json parsing, but to the fact that the subjob making the parser was called by a dynamic trunjob, hence the longer time was due to the compilation of the job, and not for its execution! Thanks all, and sorry for the post 🙂

View solution in original post

3 Replies
Dave_Simo
Creator II
Creator II

hello @lucaL 

It's strange that it takes 5 seconds, I reproduced the parsing of your json and it takes 0.09s

 

Dave_Simo_0-1758052534816.png

Dave_Simo_1-1758052633586.png

 

Best Regards

Denis_Segard
Support
Support

Hello,
When you say it takes 5 seconds , do you refer to the exec time ?

Denis_Segard_0-1758091027740.png

Denis_Segard_1-1758091046408.png

Kind regards
Denis

lucaL
Partner - Contributor II
Partner - Contributor II
Author

Hi all, thanks for the replies. After some other investingation I have found that the long time was not due to the json parsing, but to the fact that the subjob making the parser was called by a dynamic trunjob, hence the longer time was due to the compilation of the job, and not for its execution! Thanks all, and sorry for the post 🙂