Jim,
This makes sense to me. If you are querying a table or data only in the warehouse, Access will optimize the request for data. If there is a join being performed on the Access side with a local table, it is much more complex since each record in the local table has to be matched with records in the warehouse.
In addition to indexing, I would consider using a pass-through query to limit the records from the warehouse to a subset.
Duane Hookom MVP
MS Access
________________________________
> From: hal_mcgee@beaerospace.com
>
> Be sure and index the local table. I've had this issue before and
> indexing the local table helps a lot.
>
> Good luck
>
> [mailto:AccessDevelopers@yahoogroups.com] On Behalf Of luvmymelody@yahoo.com
>
> Hello all,
>
> We have a data warehouse table in a query with a local table named
> ACCOUNT joined together on the ACCOUNT field to act as a filter for the
> query.
>
> The data warehouse table is huge and the query is now not working. We
> took the local ACCOUNT table out of the query grid and added to the
> criteria line LIke PL* and Like JC2* and the query runs in less than 10
> seconds.
>
> This makes no sense because with the * we are asking for more accounts
> than what is in the table and it runs faster. The query has run for
> years so the ACCOUNT table has worked for a long time. Is there a
> limitation to a linked local table or something?
>
> Thank You
>
> Jim Wagner
------------------------------------
Please zip all files prior to uploading to Files section.Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AccessDevelopers/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/AccessDevelopers/join
(Yahoo! ID required)
<*> To change settings via email:
AccessDevelopers-digest@yahoogroups.com
AccessDevelopers-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
AccessDevelopers-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://info.yahoo.com/legal/us/yahoo/utos/terms/
Tidak ada komentar:
Posting Komentar