rob bygrave
6fcac27dfe
Refactor for query plan capture with initial threshold micros
2019-12-23 10:28:08 +13:00
rob bygrave
5d93c44475
#1877 - Adjust metric names add "orm." prefix for orm queries, "dto." for dto queries
2019-12-03 21:01:03 +13:00
rob bygrave
e093675444
#1875 - Refactor simplify MetaTimedMetric removing unrequired getStartTime() and getBeanCount()
2019-11-29 23:42:00 +13:00
Rob Bygrave
a04594540c
#1873 - Refactor metrics reporting and collection, simplify removing MetricOrmQueryNode, MetricOrmQueryOrigin ( #1874 )
...
* #1873 - Refactor metrics reporting and collection, simplify removing MetricOrmQueryNode, MetricOrmQueryOrigin
* #1873 - fix test
2019-11-29 23:35:21 +13:00
rob bygrave
be12910aec
#1872 - Reporting ORM metrics defaults to suppressing sql and location after initial collection
2019-11-29 22:05:58 +13:00
rob bygrave
eb292e017e
#1868 - Change the Metric "sqlHash" into a hash of the SQL + name + location
2019-11-20 20:15:32 +13:00
Rob Bygrave
88839f7613
Refactor rename method ProfileLocation.shortDescription() to location() ( #1859 )
2019-11-20 20:01:45 +13:00
rob bygrave
566a01d815
#1858 - Modify JSON dumped metrics to include metric type and location for timed metrics
2019-11-10 21:23:26 +13:00
rob bygrave
a7116d1606
No effective change - tidy only
2019-11-10 11:36:28 +13:00
rob bygrave
affd720390
#1854 - Use profile location label to automatically give good metric name for @Transactional (with profile location enhancement)
2019-11-07 11:18:26 +13:00
rob bygrave
51fad2dec6
Refactor CQueryBuilder extract method, no effective change.
2019-11-06 23:29:33 +13:00
rob bygrave
f24b4dba71
#1837 ( #1740 and #1744 ) - Inheritance on both sides of @ManyToOne
...
This change also relates back to #1740 and #1744 and changes the way that issue was fixed (by SqlTreeNodeBean on partially populated non-id inheritance bean).
2019-10-13 11:46:11 +13:00
Rob Bygrave
a474880735
#1837 - Inheritance on both sides of @ManyToOne confuses columns ( #1843 )
...
* #1837 - Inheritance on both sides of @ManyToOne confuses columns
* #1837 - Inheritance on both sides of @ManyToOne confuses columns
Tidy up whitespace in SQL
2019-10-12 00:25:53 +13:00
rob bygrave
e00aa479ae
#1841 - SqlServer findCount with @Aggregation gives SQLException:No column name was specified for column 2 of 'c'
2019-10-11 20:18:18 +13:00
rob bygrave
b665d8375c
#1831 - Update query with maxRows does not include the limit in the generated SQL
2019-10-11 17:01:30 +13:00
rob bygrave
fdc67b3ce5
#1823 - ENH: Add query.findStream() and query.findLargeStream()
2019-10-10 13:44:29 +13:00
rob bygrave
5d89897bbd
#1817 - Rename @DbHstore to @DbMap
2019-09-12 17:02:53 +12:00
rob bygrave
63bddb4d54
#1810 - Whan paging over query with @Aggregation ( grouping by) wrong total count is calculated
2019-09-11 23:38:12 +12:00
rob bygrave
46eeee68c9
#1814 - Support older MySQL 5.5
2019-09-11 21:37:52 +12:00
rob bygrave
e08333ef26
Improve error message when trying to use predicates etc when creating FetchGroup
2019-08-20 22:47:14 +12:00
rob bygrave
9674711516
#1796 - ENH: add query.fetchCache(path) ... for explicitly building part of graph from L2 cache
2019-08-19 21:36:19 +12:00
rob bygrave
4b5365e708
#1792 - ENH: Support using Query beans for building FetchGroup (in a type safe manor)
2019-08-14 22:52:18 +12:00
rob bygrave
a780dc133e
#1776 Fix for - refresh does not work on oneToMany if property was not yet accessed
2019-07-29 22:46:39 +12:00
rob bygrave
4513dbf29d
No effective change - whitespace change only to SqlTreeBuilder
2019-07-19 00:22:41 +12:00
rob bygrave
cedba089e1
Merge branch 'cannot-access-referenced-prop' of https://github.com/FOCONIS/ebean into FOCONIS-cannot-access-referenced-prop
2019-07-18 23:48:47 +12:00
rob bygrave
7d37c6cfd8
#1753 - use selectId() for findCount() with Formula properties
2019-07-15 19:04:43 +12:00
rob bygrave
496672b394
#1753 - Tidy for Issue with using the Formula-Properties
2019-07-14 16:03:07 +12:00
Roland Praml
081cb20260
always add main ID property, if no foreign key (=noConstraint) is present
...
(cherry picked from commit ea562151a8e3043df13381abd0d076d592618340)
2019-07-12 14:23:50 +02:00
Roland Praml
5544a2cc3e
Possible fix
2019-07-12 12:59:19 +02:00
rob bygrave
576eb01187
#1747 - Refactor remove unused SqlTreeProperties readOnly
2019-07-02 23:15:41 +12:00
rob bygrave
8b18b2a20e
#1747 - Refactor io.ebeaninternal.server.query invert boolean methods
2019-07-02 23:10:21 +12:00
rob bygrave
2f8a99c304
#1747 - Refactor io.ebeaninternal.server.query access and remove unused
2019-07-02 22:37:35 +12:00
rob bygrave
bc5db1e46a
#1747 - Refactor remove unused methods
2019-07-02 21:26:24 +12:00
rob bygrave
52398317bc
#1746 - Wrong SQL generated when using setDistinct and order by on aggregated column
2019-07-01 22:50:44 +12:00
rob bygrave
8ffc9ede85
#1740 and #1744 Don't include the discriminator column on Inheritance query on a type that has no sub-types
...
Fix for #1740
2019-06-30 21:52:01 +12:00
rob bygrave
ddf200ffdd
#1738 - Refactor toArray() plus various
2019-06-29 00:40:16 +12:00
rob bygrave
7fa5e2aa8c
#1738 - Refactor add final, Object.equals, Integer.compare
2019-06-29 00:23:12 +12:00
rob bygrave
8bfae9deef
#1738 - Refactor simplify switch and various
2019-06-28 23:48:03 +12:00
rob bygrave
e6c9f151c1
#1738 - Refactor tidy suppressWarnings and access
2019-06-28 23:20:57 +12:00
rob bygrave
b4182d4519
#1738 - Refactor SqlTreeNodeBean tidy
2019-06-28 22:40:14 +12:00
rob bygrave
93cc0399f1
#1738 - Refactor SqlTreeNodeBean load method
2019-06-28 22:35:36 +12:00
rob bygrave
d70da1d805
#1738 - Refactor tidy internals - refactor move server.lib.Str
2019-06-28 21:32:15 +12:00
rob bygrave
2225d5b7e8
#1738 - Refactor tidy internals - refactor move DtoQueryRequest
2019-06-28 21:30:15 +12:00
rob bygrave
a932d61a94
#1737 - PersistenceException while using aggregate query on related entity
...
This part includes support for joins off an aggregation formula
on a ManyToOne.
e.g. We use min(customer) ... to 'query join' to customer
in the query below.
List<Contact> contacts = Ebean.find(Contact.class)
.select("lastName, min(customer)")
.fetchQuery("customer", "name, status")
.findList();
2019-06-28 21:03:14 +12:00
rob bygrave
24b08663af
#1737 - PersistenceException while using aggregate query on related entity
...
Fix excluding the ability to additionally join (off the min(manyToOne))
2019-06-28 20:16:05 +12:00
Thibault Meyer
c5d761076a
Remove useless comparison test
...
The result of certain comparison tests can sometimes be inferred
from their context and the results of other comparisons. Inspect
the code to check whether the logic is correct, and consider
simplifying the logical expression.
Signed-off-by: Thibault Meyer <meyer.thibault@gmail.com >
2019-04-28 12:10:56 +02:00
rob bygrave
b4105ab5d0
#1683 - Refactor MetaQueryPlan and MetaOrmQueryMetric - rename getQueryPlanHash() to getSqlHash()
2019-04-26 12:55:40 +12:00
rob bygrave
65fa1c056b
#1681 - Support hitting L2 bean cache via ... findList() with idsIn() expression
2019-04-26 12:01:16 +12:00
rob bygrave
30ae435f33
#1672 - ENH: Add ebean.dumpMetricsOnShutdown=true ... for dumping metrics
2019-04-12 00:45:00 +12:00
rob bygrave
4f4743807c
#1671 - Use table alias with delete query for Postgres, Oracle, MySql
2019-04-10 01:25:43 +12:00