cancel
Showing results for 
Search instead for 
Did you mean: 

XSDS Pregeneration of imports - SP09

Former Member
0 Kudos

Hi,

I'm currently using XSDS library for a cloud based XS app we are developing. In the following blog by Thomas, it is recommended to pre-generate the CDS Entity imports, but I can't figure out how?  Can anyone help me?

http://scn.sap.com/community/developer-center/hana/blog/2014/12/09/sap-hana-sps-09-new-developer-fea...

Text from the blog:

"

Import Pre-Generation

However, this import of the metadata from the underlying model can be a relatively costly operation. Because the XSJS programming model is stateless this often creates the situation where you must re-import the CDS metadata for every single request.

For this reason the XSDS library also support pregeneration of imports in order to improve performance.  The library serializes the result of the import into a single reusable XSJSLIB file. Therefore instead of importing the entity from the HDBDD artifact you can use standard $.import feature of XSJS to utilize this prebuilt library definition."

Accepted Solutions (1)

Accepted Solutions (1)

FabioPagoti
Active Contributor
0 Kudos

I would ask the same thing. I couldn't find anything related.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

The library to perform the pre-generation was accidentally not shipped in SPS 09 and should ship with SPS 10.  In the mean time we did post it online here:

https://open.sap.com/courses/hana3/question/34d27646-da80-4ae2-a107-ff1791af921b?question_filter_ord...

FabioPagoti
Active Contributor
0 Kudos

Thanks Thomas!

Althought I might be faster.. I'd rather wait it to be shipped instead of duplicate code which will be implemented soon.


If I was the owner of the question I would mark it as answered.

former_member185490
Participant
0 Kudos

Hi Thomas,

Can you pl.advice on how to pre generate these entities using schema name? I like to pre generate these for two different schemas though the table is same in both the schema?

Thanks,

Answers (0)