By default, the persistence service will share a single ODBC database connection to persist the topic data received by each PRSTDataReader.
To associate an independent database connection to the PRSTDataReaders created by the persistence service, use the tag <share_database_connection>, as follows:
<participant name="Part1"> <domain_id>71</domain_id> <persistence_group name="PerGroup1" filter="*"> ... <share_database_connection>0</share_database_connection> ... </persistence_group> </participant>
Sharing a database connection optimizes the resource usage. However, the concurrency of the system decreases because the access to the database connection must be protected.
© 2015 RTI