Confusing variables names. since the second sysoid is the one we predict to (the y in the models) we shoudl query oid_sys2 and not oid_sys1. They are the same but it is confusing.
Get only wanted data in teh db query instead of filtering afterwards
More filtering moved to the db call. 6s --> 1.5s query time
Made the confidence interval filtering based in an "OR" instead of "AND" between absolute and relative CI width.