pagination: Spring Data JPA Page vs Slice vs keyset Window scrolling, with the SQL and REST shapes
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4bLvQVbZweAqqf54x
This commit is contained in:
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Re-runs the collection-fetch paging test on Hibernate 7.3.13.Final, the last 7.3 patch release, to reproduce
|
||||
# the HHH90003004 "applying in memory" behaviour that Hibernate 7.4 no longer has. Writes
|
||||
# output/12-collection-fetch-paging-7.3.13.Final.txt next to the 7.4 one written by the normal run.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
mvn -B -q test -Dtest=CollectionFetchPagingTest -Dhibernate.version=7.3.13.Final
|
||||
cat output/12-collection-fetch-paging-7.3.13.Final.txt
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
# Replays the "offset then keyset on one method" finding on two other Spring Data release trains.
|
||||
# Each run writes output/11-offset-then-keyset-same-method-<Spring Data JPA version>.txt.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
for bom in 2025.1.8 2026.0.0; do
|
||||
mvn -B -q test -Dtest=KeysetScrollingTest#mixingOffsetAndKeysetOnOneMethod -Dspring-data-bom.version="$bom"
|
||||
done
|
||||
ls output/11-*
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
# Regenerates every file in output/ by running the test suite (in-memory H2, no Docker needed).
|
||||
# The two "other version" scripts add the Hibernate 7.3.13 and extra Spring Data transcripts.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
rm -f output/*.txt
|
||||
mvn -B -q test
|
||||
./scripts/old-hibernate.sh >/dev/null
|
||||
./scripts/other-spring-data.sh >/dev/null
|
||||
echo "wrote:"; ls output
|
||||
Reference in New Issue
Block a user