Results 1 to 2 of 2
  1. #1
    patneel is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    1

    Linked Table query performance issue

    Hi All



    I am running this query on top of SharePoint linked table (Votes) and its taking much time to return resutls when doing Analyze performance then getting message of creating indexes on few fields of linked table
    But we can not create indexes on sharepoint linked table.. Table is linked to SharePoint to get latest data from site.

    Pls let me know what should be my approach and any better way of writing below query?




    Code:
    SELECT t.*, avgs.avg_vote, avgs.W_Avg
    FROM MonthlyTrendContent AS t, (SELECT d.[Vote Received], avg(a.[Vote Value]) AS avg_vote, sum(a.[Vote Value] * a.[BlueSky]) / SUM(a.[BlueSky]) AS W_Avg FROM MonthlyTrendContent AS a, (SELECT DISTINCT [Vote Received] FROM MonthlyTrendContent)  AS d WHERE a.[Vote Received] <= DateSerial(Year(d.[Vote Received]), Month(d.[Vote Received]) + 1, 0)             and not exists (select null                   from MonthlyTrendContent b                  where b.[Client ID] = a.[Client ID]                    and b.[Product] = a.[Product]                    and b.[Office] = a.[Office]                    and b.[Vote Received] > a.[Vote Received]                    and b.[Vote Received] <= DateSerial(Year(d.[Vote Received]), Month(d.[Vote Received]) + 1, 0)) GROUP BY d.[Vote Received])  AS avgs
    WHERE avgs.[Vote Received] = t.[Vote Received];

  2. #2
    Stingaway is offline Efficiency Junkie
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    The deep south. Keep going until you hit water basically.
    Posts
    224
    Are you using a pass through query? If not, you might consider it.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Performance issue A2007, W7
    By Minimalist in forum Programming
    Replies: 1
    Last Post: 07-11-2012, 11:17 AM
  2. Linked table issue
    By Ara in forum Access
    Replies: 4
    Last Post: 01-09-2012, 12:40 PM
  3. Linked file text/numeric filter performance
    By awc109 in forum Import/Export Data
    Replies: 0
    Last Post: 04-19-2011, 11:02 AM
  4. Update Query Performance Issue
    By Amber_1977 in forum Queries
    Replies: 2
    Last Post: 12-07-2010, 08:36 AM
  5. Replies: 1
    Last Post: 11-17-2010, 08:18 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums