|
Re: 1+N avoidance: Fetch of relationship working, but ignored when accessed
I don't think it is. Mine is a very basic case and not doing anything with FETCH JOIN.
I don't think it is. Mine is a very basic case and not doing anything with FETCH JOIN.
|
By
Vaal
·
#496
·
|
|
Re: 1+N avoidance: Fetch of relationship working, but ignored when accessed
Hi,
perhaps your situation is as per https://github.com/datanucleus/datanucleus-rdbms/issues/170 ?
Stackoverflow is not used by this project, so anything you post on there won't get a reply from
Hi,
perhaps your situation is as per https://github.com/datanucleus/datanucleus-rdbms/issues/170 ?
Stackoverflow is not used by this project, so anything you post on there won't get a reply from
|
By
Andy
·
#495
·
Edited
|
|
1+N avoidance: Fetch of relationship working, but ignored when accessed
Hi,
I posted my question on StackOverflow, but realized it might be better to post here as on SO there's only 5-ish DN questions per year
Hi,
I posted my question on StackOverflow, but realized it might be better to post here as on SO there's only 5-ish DN questions per year
|
By
Vaal
·
#492
·
|
|
Re: Best practices for connection factory configurations when using connection pooling?
Thanks Andy, I appreciate the response. Makes sense.
On the same note, given we use a pool of adequate size for the primary connection factory, wouldn't it also make sense to enable
Thanks Andy, I appreciate the response. Makes sense.
On the same note, given we use a pool of adequate size for the primary connection factory, wouldn't it also make sense to enable
|
By
niklas.duester@...
·
#491
·
|
|
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
·
|