New Posts New Posts RSS Feed: RdbQuery.SupressQueryInversion
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

RdbQuery.SupressQueryInversion

 Post Reply Post Reply
Author
IdeaBlade View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 30-May-2007
Location: United States
Posts: 353
Post Options Post Options   Quote IdeaBlade Quote  Post ReplyReply Direct Link To This Post Topic: RdbQuery.SupressQueryInversion
    Posted: 12-Jul-2007 at 4:36pm

Query Inversion" will cause data from two related tables to be loaded into the cache.  Sometimes, this is good (because you immediately want to use both tables and would prefer to use a single query to do this).  Sometimes, this is bad (because you really only want data from one table, and don't want to wast time and cache storage loading the related table).  If you suppress query inversion, you will get data from only one table. If you set SuppressQueryInversion to false (the default), you will get data from both tables.

 

This is what the Reference Help says:

 

By default, "query inversion" is performed when using a query containing subqueries. The inversion ensures that all dependent objects are fetched into cache along with the queried entities, and often improves performance. You may want to suppress this behavior, however, if you have many or complex subqueries whose inversion might cause a performance hit, or when you know that you do not require that the dependent entities be cached.

 

Back to Top
Customer View Drop Down
Senior Member
Senior Member
Avatar
User Submitted Questions to Support

Joined: 30-May-2007
Location: United States
Posts: 260
Post Options Post Options   Quote Customer Quote  Post ReplyReply Direct Link To This Post Posted: 12-Jul-2007 at 4:36pm
On queries, we've tried using RdbQuery.SupressQueryInversion (both setting to true and false - the manual advisises to set it as false in order to prevent inversion, which must be an error?) but it always seems to fetch data from related tables. Is this a known problem, or are we just doing something wrong?
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down