oly sorry if this isn't helpful I am only beginner but the most common response/thing which solves performance issues is reordering the filters, there is no query optimization, filters are applied in the order which they're specified in all datomic flavours afaik