List<Object> result1 = query1.returnAll().now();
List<Object> result2 = query2.returnAll().now();
Future<List<Object>> future1 = query1.returnAll().later(); // Should return immediately but takes as long as ".now" in our tests
Future<List<Object>> future2 = query2.returnAll().later(); // Should return immediately but takes as long as ".now" in our tests
List<Object> result1 = future1.get()):
List<Object> result2 = future2.get()):
Should the total time of the parallel example be less than the serial one? Any other hints on how to speed this up?
Thanks for any responses,
Carl