Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jpa-dev] [External] : Eclipselink and Query.getResultStream()
  • From: Lukas Jungmann <lukas.jungmann@xxxxxxxxxx>
  • Date: Tue, 13 Sep 2022 12:59:28 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GlnPamQiTsfwavhvKwW8IwRB1pTj+cDHZu6Gslvy7yc=; b=W/id1y01CyskUVDaN0Wg6hb1eupXhtmN8PvEVhvXugt8NyQsqcx7EdXfmhM7eBByW1ty7Y551r1E4TbLDimMkpfSAwjwbls7GPA71uwMX6TuJk3hqfuXK9UtBYIToCBxM7nxExzVh17LaU/AsTuK+Ggitt1RhVexjbBPihezUs6o/brs1i8EPuv7fz4UW8XceWo0nuSGp3ohsratE4GXYg0/frx9dfW7Blkcc8p5tJcJ1l4p6EU5WlQmDw3KKq2E9jmn7iT6DK9quYX5BHFhR3wOMbvowNdJXRw6gNZeP3LArTvR8pWRBUrsVSQZiG1P5TWi52/1eOfgUPApzmW0+A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LBWwslxo/wxKKW8DneMMGkSR6V8G8snCsE3tkioxHN+6Putnd72MbChs8KlYCYs8RRsS0nLJrQTqyy8mY/OvGrm8XwHP5oQ+XfQIWBevXnKhoVMOm5DYMz2w5LqdMPppG8Nt9ecfeSfG0Cfyajewf0b9OtG31PFdZOZSZuf8Pz49OXltRX4YkMRSUVVIr1SWht6K3yz/fgYs/GdqjePcAecU8QODAWKbToEivvr+dJO889ekSs2ACyN4GhpBwqSAZPeFJs/5dopZnEjrM9CZWJsej7u8doP0ecoYyTnWVnH4Y6oq5YeQZNo6JzNpP5ic1giqv57Su//mNIfa+NUsUQ==
  • Delivered-to: jpa-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jpa-dev/>
  • List-help: <mailto:jpa-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jpa-dev>, <mailto:jpa-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jpa-dev>, <mailto:jpa-dev-request@eclipse.org?subject=unsubscribe>
  • User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.2.2

Hi,

On 9/13/22 11:03 AM, Oliver Drotbohm via jpa-dev wrote:
Hi,

it was just brought to my attention [0] that Eclipselink in its current production release doesn't actually override the default implementation of Query.getResultStream(). This seems to come as a surprise to users, especially as Eclipselink is the JPA reference implementation.

Jakarta has no notion of "the reference implementation" in the first place, it uses the term "compatible implementation". What is the difference apart from different TCK license? Ie per JCP process, in case of the ambiguity in the spec the reference implementation was always right and others had to accept that as long as TCKs were passing. With the Compatible implementation, the implementation either passes TCKs and is compatible or does not pass TCK and is not compatible.

To stress the point: under Jakarta, no single implementation is "more right" than others and using the term "reference implementation" within the context of Jakarta EE/Jakarta Persistence is wrong.


it is even more of a downgrade to users of downstream integration libraries like Spring Data, as previous versions of that could implement Stream support on top of provider-native exposed cursors. With Query.getResultStream() available in the API we dropped that custom support in favor of a feature of the spec, which now unfortunately leaves users with a degraded memory profile of their application. I just checked the current RC 2 of Eclipselink 4.0 but it looks like the situation hasn't changed either.

So are there any plans to actually support that feature?

This question belongs to eclipselink project specific mailing list, not here.

thanks,
--lukas


Cheers,
Ollie

[0] https://github.com/spring-projects/spring-data-jpa/issues/2627


_______________________________________________
jpa-dev mailing list
jpa-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jpa-dev



Back to the top