I am working on a project which is db performance intensive. and I want to build the dynamic query following the db index which has been designed and implement and used by other app. the query will have to follow the old index to get better db performance without adding new indexes.
For Example,
Table A left join table B on A.id = B.id and A.mid = 123 and B.mid = 123
IEntityRelation relation = AEntity.Relations.BEntityUsingId;
reation.CustomFilter = new PredicateExpression(AFields.mid == 123 | BFields.mid ==123);
relations.add(relation, JoinHit.Left);
This is working. but somehow the index needs different sequence of these filters.
Can the LLBLGen do the following?
Table A left join table B on A.mid = 123 and A.id = B.id and B.mid = 123
and
Table A left join table B on A.mid = 123 and B.mid = 123 and A.id = B.id
Thanks