You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In cases where the result set composed of dozens of thousands of rows, constructing a jena ResultSet from JSON data may become very costly.
A JSON library that supports streaming operations on JSON Objects like Jackson or Gson (so no OOM issues will occur) could be used for counting a result set's size. If such size is greater than 50.000 the already computed result sets sizes will be compared. Otherwise, the jena ResultSet construction will proceed for comparing the result sets themselves for equality.
The text was updated successfully, but these errors were encountered:
To evaluate a response, the JSON formatted expected and received data are read as Jena result sets.
ResultSet rs = ResultSetFactory.fromJSON(new ByteArrayInputStream(byte[] results));
If the result set size is greater than 50.000 rows, only the number of rows compared, otherwise the result sets themselves are compared:
ResultSetCompare.equalsByValue(ResultSet expected, ResultSet received)
In cases where the result set composed of dozens of thousands of rows, constructing a jena
ResultSet
from JSON data may become very costly.A JSON library that supports streaming operations on JSON Objects like Jackson or Gson (so no OOM issues will occur) could be used for counting a result set's size. If such size is greater than 50.000 the already computed result sets sizes will be compared. Otherwise, the jena ResultSet construction will proceed for comparing the result sets themselves for equality.
The text was updated successfully, but these errors were encountered: