Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

XSDS Pregeneration of imports - SP09

$
0
0

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-features-xsds-xs-data-services

 

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."


Viewing all articles
Browse latest Browse all 6412

Trending Articles