Add reproduction unit test from query system that yields very poor performance.
Add reproduction unit test from query system that yields very poor performance.

realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core