Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jpa-dev] Eclipselink and Query.getResultStream()
  • From: Oliver Drotbohm <odrotbohm@xxxxxxxxxx>
  • Date: Tue, 13 Sep 2022 09:03:52 +0000
  • Accept-language: de-DE, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vmware.com; dmarc=pass action=none header.from=vmware.com; dkim=pass header.d=vmware.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=IGETOJZKkCrFYPBAdWR8FDATEHKYTLBqHw2ed7rK4DQ=; b=Q7Xe7w01cWJudZo0ShaxjN2hTb3UkKku3Lv6y7+IUj3EKsY2bIBcB9+k44Ahh+2coHp/mvzxvFy5cQYk79MjLzZjVGEP3OTD4qS+/2EZ42Lh/UuLl/9FlYrPcsZkEIZlMcUSbQ26FDcnyES3k7joULNsExidAfOvGR0NZ/EdmhD0RTmmoY6BCFZ25zL1nxe3CErbAVLnXgytw75KkxgLprXpr6I70tRvy5VujsOerZ2zv2ovN80wHtKL9RYmDGTtg6M/ccUjTwBKCeuwaWQZoU5GIcw+fS8g1jWH5NSwYvrifEMXwxydLk6WTY+6ikAIkwTUGHSmrjw/BtGSC5ALwQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NzcRaam9lhrhn7339yHMEtCAXaemzm1NgKahOzas5Ydz+hYmWFbGmeJryoy++8tFdvdtM1leY9SN09ldK5umhnTTJMWePijmopFTkENH+eDAxBypqQB/wyg2/vmBC5y5AuHU9DgepySy/ijPgqaEjpSNnRYjZaq/dy/XjneFJlpoJ4s+HeEUS2kGrEav3UGkCyIjCCTlWWiTNAVn9XeqB/y08VacuKdAHEy/9WshC6kyip9bBCJkGKysXj+w2Iwwkh5bRK3gkMc8Ep+3n0Dm9YWWU8QJ6sgn4a9oZxWkYSF6jlaVXtAlEfbdIcZbyceOD6nnXcOp1EtYrr56ojpHoA==
  • 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>
  • Thread-index: AQHYx0++VGi1ahniGkiXQZhtGihfrg==
  • Thread-topic: Eclipselink and Query.getResultStream()

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.

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?

Cheers,
Ollie

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

Attachment: signature.asc
Description: Message signed with OpenPGP


Back to the top