Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 23rd, 2005, 02:01 PM
Registered User
 
Join Date: Jun 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default data shaping... slooooow results page

I have a sql server db with 10,000 records (not many)... and am running a shape query to pull the results on to the page... it's a shape query with 5 children. My problem is the query is very slow to load... up to 15 seconds. Am I trying to do too much? Pulling too much data on the results page? The query is below, and any thoughts at all are MUCH appreciated... this one is really killing me. THANKS

code dump:

Sql = "SHAPE {SELECT DISTINCT opleaders.* FROM vwgroupsquery RIGHT JOIN (([vwrelationshipsquery] AS relationships RIGHT JOIN (vwleaderissues RIGHT JOIN (vwleadertypes RIGHT JOIN opleaders ON vwleadertypes.typetoleaderopleaderID = opleaders.opleaderID) ON vwleaderissues.issuetoleaderopleaderID = opleaders.opleaderID) ON relationships.relationshiptoleaderopleaderID = opleaders.opleaderID) LEFT JOIN vwcommunquery ON opleaders.opleaderID = vwcommunquery.commtoleaderopleaderID) ON vwgroupsquery.grouptoleaderopleaderID = opleaders.opleaderID" & whereclause & "ORDER BY opleaders.opleaderLname, opleaders.opleaderFname}"

Sql = Sql & " APPEND ({SELECT * FROM issues left join issuetoleader on issues.issueID like issuetoleader.issuetoleaderissueID ORDER BY issue} AS rsInternalTeam_Link RELATE opleaderID TO issuetoleaderopleaderID), ({SELECT * FROM leadertype left join typetoleader on leadertype.leadertypeID like typetoleader.typetoleadertypeID ORDER BY leadertype} AS rsInternalTeam_Link2 RELATE opleaderID TO typetoleaderopleaderID), ({SELECT * FROM relationships left join relationshiptoleader on relationships.relationshipID like relationshiptoleader.relationshiptoleaderrelations hipID ORDER BY relationship} AS rsInternalTeam_Link3 RELATE opleaderID TO relationshiptoleaderopleaderID), ({SELECT * FROM communications left join commtoleader on communications.commID like commtoleader.commtoleadercommID ORDER BY commdate desc} AS rsInternalTeam_Link6 RELATE opleaderID TO commtoleaderopleaderID), ({SELECT * FROM groups left join grouptoleader on groups.groupID like grouptoleader.grouptoleadergroupID ORDER BY [group]} AS rsInternalTeam_Link7 RELATE opleaderID TO grouptoleaderopleaderID)"







Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Shaping Connection String mat41 Classic ASP Professional 4 August 6th, 2008 02:19 AM
next and previous page results mikeuk PHP Databases 1 July 19th, 2004 05:15 AM
X Results per Page acdsky Classic ASP Databases 2 June 21st, 2004 10:38 AM
Data Shaping Problem .. im stuck! jeuriks SQL Server ASP 2 March 19th, 2004 11:09 AM
Data Shaping In SQL Server 2000 nidgep SQL Server ASP 5 August 29th, 2003 03:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.