Quantcast
Channel: SCN : Discussion List - Java Development
Viewing all articles
Browse latest Browse all 277

Disable persistence schema validation

$
0
0

Hello,

 

Some of our entities are based on a database views, witch are very expensive to fetch directly without any WHERE conditions.

We always get data form them with many precise conditions and they work pretty well.

 

We have noticed that during injection of entity manager, persistence unit starts to validate database schema against all annotations declared in entities.

All those mentioned entities based on views starts validating by SELECT * without any conditions probably just to get one row or empty result set to validate if columns on database match entity.

As a result we have noticed a few minutes delay during first call on any entity from this persistence context after f.g. server restart.

Its unsafe when first invoke of this persistence unit comes from web-service with very restrictive timeout.

 

Is there any way to disable this schema validation on production or to force it to launch just after application reboot (not during first call)?

 

SAP NetWeaver Application Server 7.20 / AS Java 7.11


Viewing all articles
Browse latest Browse all 277

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>