|
Re: Best practices for connection factory configurations when using connection pooling?
It is a valid assumption (secondary using smaller pool).
If you do all of your schema generation up front you won't need any secondary connections for those ops also.
If your chosen value generation
It is a valid assumption (secondary using smaller pool).
If you do all of your schema generation up front you won't need any secondary connections for those ops also.
If your chosen value generation
|
By
Andy
·
#490
·
|
|
Best practices for connection factory configurations when using connection pooling?
I'm aware this is kind of a generic question, but is there any guidance or any best practices around connection factory configuration when using connection pooling?
We use DN RDBMS with HikariCP, and
I'm aware this is kind of a generic question, but is there any guidance or any best practices around connection factory configuration when using connection pooling?
We use DN RDBMS with HikariCP, and
|
By
niklas.duester@...
·
#489
·
|
|
Re: Select with subselect
Not got the time to look through that at the moment. Suggest that you look in our test cases, since there's a lot of example of subqueries with
Not got the time to look through that at the moment. Suggest that you look in our test cases, since there's a lot of example of subqueries with
|
By
Andy
·
#488
·
|
|
Select with subselect
I'd like to implement a JDOQL query for the following SQL statement:
select * from project p, project_strategic_bucket psb where psb.project_id_oid = p.id
and psb.strategic_bucket_id_oid in
I'd like to implement a JDOQL query for the following SQL statement:
select * from project p, project_strategic_bucket psb where psb.project_id_oid = p.id
and psb.strategic_bucket_id_oid in
|
By
jacek.czerwinski.ext@...
·
#487
·
|
|
Re: Evict parent class from Query Results Cache at commit
The docs https://www.datanucleus.org/products/accessplatform_6_0/jdo/query.html#cache_results describes how you can gain access to internal objects and hence evict particular things should you need to
The docs https://www.datanucleus.org/products/accessplatform_6_0/jdo/query.html#cache_results describes how you can gain access to internal objects and hence evict particular things should you need to
|
By
Andy
·
#486
·
|
|
Evict parent class from Query Results Cache at commit
Hi!
I hope you can help with this issue. I have a simple inheritance of these two classes.
I've got them mapped like this
with subclass-table inheritence strategy. Also I have query results cache
Hi!
I hope you can help with this issue. I have a simple inheritance of these two classes.
I've got them mapped like this
with subclass-table inheritence strategy. Also I have query results cache
|
By
edwin.chui@...
·
#485
·
|
|
Re: Cache Results not working with "count" query
IgnoreCache is for the L1 cache, as per the JDO spec.
You simply don't use result caching on that query, i.e either don't enable it in the first place or set datanucleus.query.resultCacheType to none.
IgnoreCache is for the L1 cache, as per the JDO spec.
You simply don't use result caching on that query, i.e either don't enable it in the first place or set datanucleus.query.resultCacheType to none.
|
By
Andy
·
#484
·
Edited
|
|
Re: Cache Results not working with "count" query
Is there a method I can call, when executing the count query, to avoid getting the result from cache???
I've tried with the method setIgnoreCache.
But it still getting the same error.
If you can help
Is there a method I can call, when executing the count query, to avoid getting the result from cache???
I've tried with the method setIgnoreCache.
But it still getting the same error.
If you can help
|
By
edwin.chui@...
·
#483
·
|
|
Re: Cache Results not working with "count" query
As replied on Gitter,Result Caching is for candidate results and nothing else currently, as shown by the implementation. A "count" query is not for candidate results
As replied on Gitter,Result Caching is for candidate results and nothing else currently, as shown by the implementation. A "count" query is not for candidate results
|
By
Andy
·
#482
·
|
|
Cache Results not working with "count" query
I've got a project with datanucleus v6.0.0-release and in my properties file I've got configured with the following values:
As you can see I have the datanucleus.query.results.cached enabled
In my
I've got a project with datanucleus v6.0.0-release and in my properties file I've got configured with the following values:
As you can see I have the datanucleus.query.results.cached enabled
In my
|
By
edwin.chui@...
·
#481
·
|
|
Re: Persisting attribute using "new" Java time Instant in MySQL
That was enlightening: I hadn't appreciated the two levels of types: JDBC types and MySQL types and that the mappings between them are not a simple one-to-one. Given that the type names are identical
That was enlightening: I hadn't appreciated the two levels of types: JDBC types and MySQL types and that the mappings between them are not a simple one-to-one. Given that the type names are identical
|
By
Page bloom
·
#480
·
Edited
|
|
Re: Persisting attribute using "new" Java time Instant in MySQL
If you look at what the MySQL JDBC driver provides to DataNucleus, you see that it supports DATETIME and TIMESTAMP as the SQL TYPE when the JDBC TYPE is
If you look at what the MySQL JDBC driver provides to DataNucleus, you see that it supports DATETIME and TIMESTAMP as the SQL TYPE when the JDBC TYPE is
|
By
Andy
·
#479
·
|
|
Re: Persisting attribute using "new" Java time Instant in MySQL
I tried adding an explicit JDBC type via:
<field name="created">
<column jdbc-type="TIMESTAMP" />
</field>
but DN still creates a DATETIME column instead of a TIMESTAMP
I tried adding an explicit JDBC type via:
<field name="created">
<column jdbc-type="TIMESTAMP" />
</field>
but DN still creates a DATETIME column instead of a TIMESTAMP
|
By
Page bloom
·
#478
·
|
|
Persisting attribute using "new" Java time Instant in MySQL
Traditionally we have used the java.util.Date class for storing time instants in UTC time - in all existing tables DN has created a 'TIMESTAMP' type field in MySQL - which works fine.
Recently we
Traditionally we have used the java.util.Date class for storing time instants in UTC time - in all existing tables DN has created a 'TIMESTAMP' type field in MySQL - which works fine.
Recently we
|
By
Page bloom
·
#477
·
Edited
|
|
Re: JDOQL ordering using primary key field
Thanks Andy, that worked well.
I used it within my setOrdering call:
setOrdering("score ascending, JDOHelper.getObjectId(this) ascending);
Thanks Andy, that worked well.
I used it within my setOrdering call:
setOrdering("score ascending, JDOHelper.getObjectId(this) ascending);
|
By
Page bloom
·
#476
·
Edited
|
|
Re: JDOQL ordering using primary key field
JDO has
By
Andy
·
#475
·
|
|
JDOQL ordering using primary key field
If a class does not have an attribute defined to be the primary key field but, rather, relies on DN creating the primary key column in the RBDMS table implicitly, is there any way to specify the
If a class does not have an attribute defined to be the primary key field but, rather, relies on DN creating the primary key column in the RBDMS table implicitly, is there any way to specify the
|
By
Page bloom
·
#474
·
Edited
|
|
Re: Use multiple columns for Discriminator in Inheritance Tree with single-table
Yes, JDO, JPA (and Jakarta Persistence) all allow 1 discriminator (value) only. JDO metadata strictly speaking permits multiple columns for some reason, but there is only space for 1 value and that's
Yes, JDO, JPA (and Jakarta Persistence) all allow 1 discriminator (value) only. JDO metadata strictly speaking permits multiple columns for some reason, but there is only space for 1 value and that's
|
By
Andy
·
#473
·
Edited
|
|
Use multiple columns for Discriminator in Inheritance Tree with single-table
We have a table like: node(nodetype, subnodetype, ...)
From this one table we want to have several persistent java classes.
Both node.nodetype and node.subnodetype is needed to discriminate the java
We have a table like: node(nodetype, subnodetype, ...)
From this one table we want to have several persistent java classes.
Both node.nodetype and node.subnodetype is needed to discriminate the java
|
By
Kraen David Christensen
·
#472
·
|
|
Clone of test-jdo is not working
I am trying to build a test case for JDO.
When I clone https://github.com/datanucleus/test-jdo then mvn clean compile test I get a failure, also created
I am trying to build a test case for JDO.
When I clone https://github.com/datanucleus/test-jdo then mvn clean compile test I get a failure, also created
|
By
mores
·
#471
·
|