Measurement Retrieval

For performance reasons, measurements are written/updated directly in the database through the use of direct SQL (JDBC). Because of this, the Hibernate cache will not always be aware of changes that are made for measurements and become stale for data updated in the current session. This means that when retrieving measurements during the same session in which they were inserted into the database using the Java classes provided with the application and Hibernate can return incorrect results. We recommend using direct SQL (JDBC) to retrieve measurement data directly in these situations.

In summary:

  • Pre-existing measurements that have not been altered in the current session can be retrieved using Java classes.
  • Measurements that have been inserted or updated by the IMD within the current session should be retrieved using direct SQL (JDBC).