Hi,
I am currently integrating db4o with Spring.NET (using Spring.Data classes from the CVS sandbox, if some of you wonder).
However, several things scratch my mind :
1) Concerning the connection Creation : is there a generic Factory for creating connections, no matter whether the connection opens an ObjectContainer directly on a file, or uses an embedded or even remote server.
I am roughly speaking about an equivalent of a JDBC "Datasource" , that allows Spring to ds.createConnection() when it needs one.
2) Is there any plan to create a "pooled" (a.k.a commons-dbcp) implementation of such a Datasource ? I don't think it is realistic to run a publicly available website using non-pooled connections, is it ?
3) Concerning Queries...
The spring-enabled DAO that needs to perform a query DOES NOT and MUST NOT know the ObjectContainer instance it will work on. This is up to the Db4oTransactionTemplate to get a connection, and synchronize an existing transaction to it. This implies that
- db.query() is impossible => no way to get a SODA query
- Native queries are possible, but I am worried by the actual performance of this kind of queries. Optimizing them means that bytecode/IL analysis is necessary, so I doubt it is ready yet, is it ?
Thanks a lot for any suggestion,
Sami