also test postgres with the maximum number of records that are possible
@@ -92,11 +92,16 @@ class VeryManyMutationsSpec extends FlatSpec with Matchers with ApiSpecBase with
server.query("""query {tops { middles { int } }}""", project)
}
- // The Postgres communication protocol uses a signed 16 bit integer to identify the number of query parameters, so you can't execute a query that contains more than 32,768 of them.
+ "Expanding relations for 32768 records" should "work" in {
+ // The Postgres communication protocol uses a signed 16 bit integer to identify the number of query parameters.
+ // so you can't execute a query that contains more than 32.768 of them.
// source: https://github.com/sfackler/rust-postgres/issues/356#issuecomment-391415848
- "Expanding relations for a lot 40000 records" should "work" taggedAs (IgnorePostgres) in {
+ server.query(s"""query {middles(first: 32500) { top { int } }}""", project)
+ }
+
+ "Expanding relations for a for 40000 records" should "work" taggedAs (IgnorePostgres) in {
// get 40000 middles and their tops
- server.query("""query {middles { top { int } }}""", project)
+ server.query(s"""query {middles { top { int } }}""", project)
}
"The update many Mutation" should "work" in {
