473,563 Members | 2,662 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A very slow running query

I hope this isn't too confusing.

The following query runs pretty fast by itself, but when I want to use it in
a report (pasted below the query), it takes at least fifteen seconds to run!
Then I want to analyze the query in Excel and I have to do some manual
tweaking. I'd like to run this same query as a summary for the whole class
without having to manually do it in Excel, rather in an Access report, but
that gets even more complicated.

Here's the Access SQL:

SELECT students.studen tID, courses.courseC ode, groups.groupID,
activities.acti vityID, groups.groupWei ght, groups.groupOrd er,
activities.acti vityWeight, activities.acti vityOrder, studentScores.s core,
students.[lname] & ", " & [fname] AS student,
[activities].[activityWeight]/DSum("activityw eight","activit ies","groupID= "
& [groups].[groupID]) AS ActivityPercent ageWeight,
[groups].[groupWeight]/DSum("groupweig ht","groups","c ourseCode= '" &
[courses].[courseCode] & "'") AS GroupPercentage Weight,
[score]*[ActivityPercent ageWeight]*[GroupPercentage Weight] AS
activityPoints, courses.courseD escription, activities.acti vityDescription
FROM students INNER JOIN (((courses INNER JOIN groups ON courses.courseC ode
= groups.courseCo de) INNER JOIN studentsInCours es ON courses.courseC ode =
studentsInCours es.courseCode) INNER JOIN (activities INNER JOIN
studentScores ON activities.acti vityID = studentScores.a ctivityID) ON
groups.groupID = activities.grou pID) ON (students.stude ntID =
studentsInCours es.studentID) AND (students.stude ntID =
studentScores.s tudentID)
GROUP BY students.studen tID, courses.courseC ode, groups.groupID,
activities.acti vityID, groups.groupWei ght, groups.groupOrd er,
activities.acti vityWeight, activities.acti vityOrder, studentScores.s core,
students.[lname] & ", " & [fname], courses.courseD escription,
activities.acti vityDescription ;
I wonder how I could rewrite this to run faster? Or maybe the problem is
how the data is being retrieved in the report? Should I send the code
behind the report?

Here is an example of an actual student grade sheet (formatted for text, not
the actual formatting). It is based on a crosstab query called
qryStudentSumma ry (above).

Student Summary for: (NAME DELETED FOR PRIVACY)
45768 Course 2007 Spring English 1A MW 2 pm
Wednesday, June 06, 2007

Group Participation Score Weight % Weight
Writing Center 0.0 1.0 50.00%
Discussion 75.0 1.0 50.00%
Group Weight: 10.0 total for group 3.75%
Group Critical Thinking Score Weight % Weight
Critical Thinking 0.0 1.0 100.00%
Group Weight: 5.0 total for group 0.00%
Group Essays Score Weight % Weight
Reflection 73.0 60.0 12.77%
Letter 10 Editor 75.0 35.0 7.45%
Scholarship 70.0 35.0 7.45%
Comparison 62.0 70.0 14.89%
Causal Analysis 75.0 80.0 17.02%
Definition 57.0 90.0 19.15%
Argument 75.0 100.0 21.28%
Group Weight: 30.0 total for group 20.70%
Group Research Score Weight % Weight
5 Power Figures 100.0 5.0 2.50%
Machiavelli Summary 100.0 5.0 2.50%
Proposal 100.0 5.0 2.50%
Annotated Bibliography 100.0 15.0 7.50%
Outline 87.0 10.0 5.00%
1st Draft 52.0 10.0 5.00%
2nd Draft 77.0 100.0 50.00%
3rd draft 0.0 50.0 25.00%
Group Weight: 15.0 total for group 9.07%
Group Exams Score Weight % Weight
Midterm 75.0 5.0 100.00%
Group Weight: 30.0 total for group 22.50%
(next page)
Student Summary for: (NAME DELETED FOR PRIVACY)
45768 Course 2007 Spring English 1A MW 2 pm
Wednesday, June 06, 2007

Group In Class Work Score Weight % Weight
Cause/Effect Outline 100.0 1.0 4.55%
In-class Machiavelli 0.0 1.0 4.55%
Wooden 100.0 1.0 4.55%
Comparison introduction 100.0 1.0 4.55%
Cause/Effect Intro 100.0 1.0 4.55%
Rousseau 3 0.0 1.0 4.55%
Argument Proposal 100.0 1.0 4.55%
Definition Metaphor 100.0 1.0 4.55%
Definition Intro 0.0 1.0 4.55%
Rousseau 2 100.0 1.0 4.55%
Boys and Girls 0.0 1.0 4.55%
Rousseau 1 100.0 1.0 4.55%
Smith/Marx 0.0 1.0 4.55%
Smith/Marx essay 100.0 1.0 4.55%
Aristotle 100.0 1.0 4.55%
Gardner 100.0 1.0 4.55%
Self Evaluation 100.0 1.0 4.55%
Keynes/Galbraith/Reich 0.0 1.0 4.55%
Comparison Discussion 100.0 1.0 4.55%
Shipwreck 0.0 1.0 4.55%
Thoreau/King 50.0 1.0 4.55%
Eduction Discussion 100.0 1.0 4.55%
Group Weight: 10.0 total for group 6.59%
(next page)
Student Summary for: (NAME DELETED FOR PRIVACY)
45768 Course 2007 Spring English 1A MW 2 pm
Wednesday, June 06, 2007
Course Average: 62.61%
Extra Credit 1.00%
Total 63.61% D
Although a letter grade of D is not considered failing, you must
earn a grade of C or better to pass to the next level. Please seek
help.
The letter grades work like this:
A = 92 or higher
B = 82-91
C = 72-81
D = 62-71
F = 61 or below

Jun 7 '07 #1
3 3587
See, if I include the group weights, group names, activity weights, and
activity names, it creates a bunch of extra rows. So I have to make an
extra step of plugging that data in manually in an Excel database, when I
would much rather create an Access report to do the same thing. It's hard
to format in text:

Each column: Group, Group weight, Activity, Activity Weight all above name.
Then beside each name within each column the score at the intersection.
first column below the first several rows:
Name:

Each column thereafter will be the scores.

If I weren't so close to this I would be confused. I get a little confused
just trying to explain the situation. I really do understand the problem.
I just don't know how to solve it. I'm in the middle of creating web pages
that will show the problem graphically with screen shots and code behind the
forms, etc.
"Richard Hollenbeck" <ri************ ****@verizon.ne twrote in message
news:CCM9i.216$ ng.19@trnddc07. ..
>I hope this isn't too confusing.

The following query runs pretty fast by itself, but when I want to use it
in a report (pasted below the query), it takes at least fifteen seconds to
run! Then I want to analyze the query in Excel and I have to do some
manual tweaking. I'd like to run this same query as a summary for the
whole class without having to manually do it in Excel, rather in an Access
report, but that gets even more complicated.

Here's the Access SQL:

SELECT students.studen tID, courses.courseC ode, groups.groupID,
activities.acti vityID, groups.groupWei ght, groups.groupOrd er,
activities.acti vityWeight, activities.acti vityOrder, studentScores.s core,
students.[lname] & ", " & [fname] AS student,
[activities].[activityWeight]/DSum("activityw eight","activit ies","groupID= "
& [groups].[groupID]) AS ActivityPercent ageWeight,
[groups].[groupWeight]/DSum("groupweig ht","groups","c ourseCode= '" &
[courses].[courseCode] & "'") AS GroupPercentage Weight,
[score]*[ActivityPercent ageWeight]*[GroupPercentage Weight] AS
activityPoints, courses.courseD escription, activities.acti vityDescription
FROM students INNER JOIN (((courses INNER JOIN groups ON
courses.courseC ode = groups.courseCo de) INNER JOIN studentsInCours es ON
courses.courseC ode = studentsInCours es.courseCode) INNER JOIN (activities
INNER JOIN studentScores ON activities.acti vityID =
studentScores.a ctivityID) ON groups.groupID = activities.grou pID) ON
(students.stude ntID = studentsInCours es.studentID) AND (students.stude ntID
= studentScores.s tudentID)
GROUP BY students.studen tID, courses.courseC ode, groups.groupID,
activities.acti vityID, groups.groupWei ght, groups.groupOrd er,
activities.acti vityWeight, activities.acti vityOrder, studentScores.s core,
students.[lname] & ", " & [fname], courses.courseD escription,
activities.acti vityDescription ;
I wonder how I could rewrite this to run faster? Or maybe the problem is
how the data is being retrieved in the report? Should I send the code
behind the report?

Here is an example of an actual student grade sheet (formatted for text,
not the actual formatting). It is based on a crosstab query called
qryStudentSumma ry (above).

Student Summary for: (NAME DELETED FOR PRIVACY)
45768 Course 2007 Spring English 1A MW 2 pm
Wednesday, June 06, 2007

Group Participation Score Weight % Weight
Writing Center 0.0 1.0 50.00%
Discussion 75.0 1.0 50.00%
Group Weight: 10.0 total for group 3.75%
Group Critical Thinking Score Weight % Weight
Critical Thinking 0.0 1.0 100.00%
Group Weight: 5.0 total for group 0.00%
Group Essays Score Weight % Weight
Reflection 73.0 60.0 12.77%
Letter 10 Editor 75.0 35.0 7.45%
Scholarship 70.0 35.0 7.45%
Comparison 62.0 70.0 14.89%
Causal Analysis 75.0 80.0 17.02%
Definition 57.0 90.0 19.15%
Argument 75.0 100.0 21.28%
Group Weight: 30.0 total for group 20.70%
Group Research Score Weight % Weight
5 Power Figures 100.0 5.0 2.50%
Machiavelli Summary 100.0 5.0 2.50%
Proposal 100.0 5.0 2.50%
Annotated Bibliography 100.0 15.0 7.50%
Outline 87.0 10.0 5.00%
1st Draft 52.0 10.0 5.00%
2nd Draft 77.0 100.0 50.00%
3rd draft 0.0 50.0 25.00%
Group Weight: 15.0 total for group 9.07%
Group Exams Score Weight % Weight
Midterm 75.0 5.0 100.00%
Group Weight: 30.0 total for group 22.50%
(next page)
Student Summary for: (NAME DELETED FOR PRIVACY)
45768 Course 2007 Spring English 1A MW 2 pm
Wednesday, June 06, 2007

Group In Class Work Score Weight % Weight
Cause/Effect Outline 100.0 1.0 4.55%
In-class Machiavelli 0.0 1.0 4.55%
Wooden 100.0 1.0 4.55%
Comparison introduction 100.0 1.0 4.55%
Cause/Effect Intro 100.0 1.0 4.55%
Rousseau 3 0.0 1.0 4.55%
Argument Proposal 100.0 1.0 4.55%
Definition Metaphor 100.0 1.0 4.55%
Definition Intro 0.0 1.0 4.55%
Rousseau 2 100.0 1.0 4.55%
Boys and Girls 0.0 1.0 4.55%
Rousseau 1 100.0 1.0 4.55%
Smith/Marx 0.0 1.0 4.55%
Smith/Marx essay 100.0 1.0 4.55%
Aristotle 100.0 1.0 4.55%
Gardner 100.0 1.0 4.55%
Self Evaluation 100.0 1.0 4.55%
Keynes/Galbraith/Reich 0.0 1.0 4.55%
Comparison Discussion 100.0 1.0 4.55%
Shipwreck 0.0 1.0 4.55%
Thoreau/King 50.0 1.0 4.55%
Eduction Discussion 100.0 1.0 4.55%
Group Weight: 10.0 total for group 6.59%
(next page)
Student Summary for: (NAME DELETED FOR PRIVACY)
45768 Course 2007 Spring English 1A MW 2 pm
Wednesday, June 06, 2007
Course Average: 62.61%
Extra Credit 1.00%
Total 63.61% D
Although a letter grade of D is not considered failing, you must
earn a grade of C or better to pass to the next level. Please seek
help.
The letter grades work like this:
A = 92 or higher
B = 82-91
C = 72-81
D = 62-71
F = 61 or below



Jun 7 '07 #2
Actually a different query does a much better job but it doesn't include the
Activity and Group data. I can't use it for the grades sheet but it does
work for the spreadsheet. I just can't figure out how to get the Activity
and Group data into it without creating a bunch of extra rows:

PARAMETERS [Forms]![frmSelectCourse]![cboSelectCourse] Text ( 255 );
TRANSFORM Sum(studentScor es.score) AS SumOfscore
SELECT studentsInCours es.courseCode, courses.courseD escription, [lName] & ",
" & [fName] & " " & [StudentNumber] AS Student
FROM students INNER JOIN (((courses INNER JOIN groups ON courses.courseC ode
= groups.courseCo de) INNER JOIN studentsInCours es ON courses.courseC ode =
studentsInCours es.courseCode) INNER JOIN (activities INNER JOIN
studentScores ON activities.acti vityID = studentScores.a ctivityID) ON
groups.groupID = activities.grou pID) ON (students.stude ntID =
studentsInCours es.studentID) AND (students.stude ntID =
studentScores.s tudentID)
WHERE
(((studentsInCo urses.courseCod e)=[Forms]![frmSelectCourse]![cboSelectCourse]))
GROUP BY studentsInCours es.courseCode, courses.courseD escription, [lName] &
", " & [fName] & " " & [StudentNumber]
ORDER BY studentsInCours es.courseCode
PIVOT activities.acti vityDescription ;

Group name and Group weight are both in a table called groups. Activity
name and Activity Weight are in a table called activities.

"Richard Hollenbeck" <ri************ ****@verizon.ne twrote in message
news:CCM9i.216$ ng.19@trnddc07. ..
>I hope this isn't too confusing.

The following query runs pretty fast by itself, but when I want to use it
in a report (pasted below the query), it takes at least fifteen seconds to
run! Then I want to analyze the query in Excel and I have to do some
manual tweaking. I'd like to run this same query as a summary for the
whole class without having to manually do it in Excel, rather in an Access
report, but that gets even more complicated.

Here's the Access SQL:

SELECT students.studen tID, courses.courseC ode, groups.groupID,
activities.acti vityID, groups.groupWei ght, groups.groupOrd er,
activities.acti vityWeight, activities.acti vityOrder, studentScores.s core,
students.[lname] & ", " & [fname] AS student,
[activities].[activityWeight]/DSum("activityw eight","activit ies","groupID= "
& [groups].[groupID]) AS ActivityPercent ageWeight,
[groups].[groupWeight]/DSum("groupweig ht","groups","c ourseCode= '" &
[courses].[courseCode] & "'") AS GroupPercentage Weight,
[score]*[ActivityPercent ageWeight]*[GroupPercentage Weight] AS
activityPoints, courses.courseD escription, activities.acti vityDescription
FROM students INNER JOIN (((courses INNER JOIN groups ON
courses.courseC ode = groups.courseCo de) INNER JOIN studentsInCours es ON
courses.courseC ode = studentsInCours es.courseCode) INNER JOIN (activities
INNER JOIN studentScores ON activities.acti vityID =
studentScores.a ctivityID) ON groups.groupID = activities.grou pID) ON
(students.stude ntID = studentsInCours es.studentID) AND (students.stude ntID
= studentScores.s tudentID)
GROUP BY students.studen tID, courses.courseC ode, groups.groupID,
activities.acti vityID, groups.groupWei ght, groups.groupOrd er,
activities.acti vityWeight, activities.acti vityOrder, studentScores.s core,
students.[lname] & ", " & [fname], courses.courseD escription,
activities.acti vityDescription ;
I wonder how I could rewrite this to run faster? Or maybe the problem is
how the data is being retrieved in the report? Should I send the code
behind the report?

Here is an example of an actual student grade sheet (formatted for text,
not the actual formatting). It is based on a crosstab query called
qryStudentSumma ry (above).

Student Summary for: (NAME DELETED FOR PRIVACY)
45768 Course 2007 Spring English 1A MW 2 pm
Wednesday, June 06, 2007

Group Participation Score Weight % Weight
Writing Center 0.0 1.0 50.00%
Discussion 75.0 1.0 50.00%
Group Weight: 10.0 total for group 3.75%
Group Critical Thinking Score Weight % Weight
Critical Thinking 0.0 1.0 100.00%
Group Weight: 5.0 total for group 0.00%
Group Essays Score Weight % Weight
Reflection 73.0 60.0 12.77%
Letter 10 Editor 75.0 35.0 7.45%
Scholarship 70.0 35.0 7.45%
Comparison 62.0 70.0 14.89%
Causal Analysis 75.0 80.0 17.02%
Definition 57.0 90.0 19.15%
Argument 75.0 100.0 21.28%
Group Weight: 30.0 total for group 20.70%
Group Research Score Weight % Weight
5 Power Figures 100.0 5.0 2.50%
Machiavelli Summary 100.0 5.0 2.50%
Proposal 100.0 5.0 2.50%
Annotated Bibliography 100.0 15.0 7.50%
Outline 87.0 10.0 5.00%
1st Draft 52.0 10.0 5.00%
2nd Draft 77.0 100.0 50.00%
3rd draft 0.0 50.0 25.00%
Group Weight: 15.0 total for group 9.07%
Group Exams Score Weight % Weight
Midterm 75.0 5.0 100.00%
Group Weight: 30.0 total for group 22.50%
(next page)
Student Summary for: (NAME DELETED FOR PRIVACY)
45768 Course 2007 Spring English 1A MW 2 pm
Wednesday, June 06, 2007

Group In Class Work Score Weight % Weight
Cause/Effect Outline 100.0 1.0 4.55%
In-class Machiavelli 0.0 1.0 4.55%
Wooden 100.0 1.0 4.55%
Comparison introduction 100.0 1.0 4.55%
Cause/Effect Intro 100.0 1.0 4.55%
Rousseau 3 0.0 1.0 4.55%
Argument Proposal 100.0 1.0 4.55%
Definition Metaphor 100.0 1.0 4.55%
Definition Intro 0.0 1.0 4.55%
Rousseau 2 100.0 1.0 4.55%
Boys and Girls 0.0 1.0 4.55%
Rousseau 1 100.0 1.0 4.55%
Smith/Marx 0.0 1.0 4.55%
Smith/Marx essay 100.0 1.0 4.55%
Aristotle 100.0 1.0 4.55%
Gardner 100.0 1.0 4.55%
Self Evaluation 100.0 1.0 4.55%
Keynes/Galbraith/Reich 0.0 1.0 4.55%
Comparison Discussion 100.0 1.0 4.55%
Shipwreck 0.0 1.0 4.55%
Thoreau/King 50.0 1.0 4.55%
Eduction Discussion 100.0 1.0 4.55%
Group Weight: 10.0 total for group 6.59%
(next page)
Student Summary for: (NAME DELETED FOR PRIVACY)
45768 Course 2007 Spring English 1A MW 2 pm
Wednesday, June 06, 2007
Course Average: 62.61%
Extra Credit 1.00%
Total 63.61% D
Although a letter grade of D is not considered failing, you must
earn a grade of C or better to pass to the next level. Please seek
help.
The letter grades work like this:
A = 92 or higher
B = 82-91
C = 72-81
D = 62-71
F = 61 or below



Jun 7 '07 #3
Richard Hollenbeck wrote:
I hope this isn't too confusing.

The following query runs pretty fast by itself, but when I want to use it in
a report (pasted below the query), it takes at least fifteen seconds to run!
Then I want to analyze the query in Excel and I have to do some manual
tweaking. I'd like to run this same query as a summary for the whole class
without having to manually do it in Excel, rather in an Access report, but
that gets even more complicated.
Sometimes what I will do is create a couple of sub queries that
gets/rolls up specific data. IOW, I would take your query and break it
up. Then create a new query and add those queries and any other tables
still missing and run it.

>
Here's the Access SQL:

SELECT students.studen tID, courses.courseC ode, groups.groupID,
activities.acti vityID, groups.groupWei ght, groups.groupOrd er,
activities.acti vityWeight, activities.acti vityOrder, studentScores.s core,
students.[lname] & ", " & [fname] AS student,
[activities].[activityWeight]/DSum("activityw eight","activit ies","groupID= "
& [groups].[groupID]) AS ActivityPercent ageWeight,
[groups].[groupWeight]/DSum("groupweig ht","groups","c ourseCode= '" &
[courses].[courseCode] & "'") AS GroupPercentage Weight,
[score]*[ActivityPercent ageWeight]*[GroupPercentage Weight] AS
activityPoints, courses.courseD escription, activities.acti vityDescription
FROM students INNER JOIN (((courses INNER JOIN groups ON courses.courseC ode
= groups.courseCo de) INNER JOIN studentsInCours es ON courses.courseC ode =
studentsInCours es.courseCode) INNER JOIN (activities INNER JOIN
studentScores ON activities.acti vityID = studentScores.a ctivityID) ON
groups.groupID = activities.grou pID) ON (students.stude ntID =
studentsInCours es.studentID) AND (students.stude ntID =
studentScores.s tudentID)
GROUP BY students.studen tID, courses.courseC ode, groups.groupID,
activities.acti vityID, groups.groupWei ght, groups.groupOrd er,
activities.acti vityWeight, activities.acti vityOrder, studentScores.s core,
students.[lname] & ", " & [fname], courses.courseD escription,
activities.acti vityDescription ;
I wonder how I could rewrite this to run faster? Or maybe the problem is
how the data is being retrieved in the report? Should I send the code
behind the report?

Here is an example of an actual student grade sheet (formatted for text, not
the actual formatting). It is based on a crosstab query called
qryStudentSumma ry (above).

Student Summary for: (NAME DELETED FOR PRIVACY)
45768 Course 2007 Spring English 1A MW 2 pm
Wednesday, June 06, 2007

Group Participation Score Weight % Weight
Writing Center 0.0 1.0 50.00%
Discussion 75.0 1.0 50.00%
Group Weight: 10.0 total for group 3.75%
Group Critical Thinking Score Weight % Weight
Critical Thinking 0.0 1.0 100.00%
Group Weight: 5.0 total for group 0.00%
Group Essays Score Weight % Weight
Reflection 73.0 60.0 12.77%
Letter 10 Editor 75.0 35.0 7.45%
Scholarship 70.0 35.0 7.45%
Comparison 62.0 70.0 14.89%
Causal Analysis 75.0 80.0 17.02%
Definition 57.0 90.0 19.15%
Argument 75.0 100.0 21.28%
Group Weight: 30.0 total for group 20.70%
Group Research Score Weight % Weight
5 Power Figures 100.0 5.0 2.50%
Machiavelli Summary 100.0 5.0 2.50%
Proposal 100.0 5.0 2.50%
Annotated Bibliography 100.0 15.0 7.50%
Outline 87.0 10.0 5.00%
1st Draft 52.0 10.0 5.00%
2nd Draft 77.0 100.0 50.00%
3rd draft 0.0 50.0 25.00%
Group Weight: 15.0 total for group 9.07%
Group Exams Score Weight % Weight
Midterm 75.0 5.0 100.00%
Group Weight: 30.0 total for group 22.50%
(next page)
Student Summary for: (NAME DELETED FOR PRIVACY)
45768 Course 2007 Spring English 1A MW 2 pm
Wednesday, June 06, 2007

Group In Class Work Score Weight % Weight
Cause/Effect Outline 100.0 1.0 4.55%
In-class Machiavelli 0.0 1.0 4.55%
Wooden 100.0 1.0 4.55%
Comparison introduction 100.0 1.0 4.55%
Cause/Effect Intro 100.0 1.0 4.55%
Rousseau 3 0.0 1.0 4.55%
Argument Proposal 100.0 1.0 4.55%
Definition Metaphor 100.0 1.0 4.55%
Definition Intro 0.0 1.0 4.55%
Rousseau 2 100.0 1.0 4.55%
Boys and Girls 0.0 1.0 4.55%
Rousseau 1 100.0 1.0 4.55%
Smith/Marx 0.0 1.0 4.55%
Smith/Marx essay 100.0 1.0 4.55%
Aristotle 100.0 1.0 4.55%
Gardner 100.0 1.0 4.55%
Self Evaluation 100.0 1.0 4.55%
Keynes/Galbraith/Reich 0.0 1.0 4.55%
Comparison Discussion 100.0 1.0 4.55%
Shipwreck 0.0 1.0 4.55%
Thoreau/King 50.0 1.0 4.55%
Eduction Discussion 100.0 1.0 4.55%
Group Weight: 10.0 total for group 6.59%
(next page)
Student Summary for: (NAME DELETED FOR PRIVACY)
45768 Course 2007 Spring English 1A MW 2 pm
Wednesday, June 06, 2007
Course Average: 62.61%
Extra Credit 1.00%
Total 63.61% D
Although a letter grade of D is not considered failing, you must
earn a grade of C or better to pass to the next level. Please seek
help.
The letter grades work like this:
A = 92 or higher
B = 82-91
C = 72-81
D = 62-71
F = 61 or below


Jun 7 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1666
by: Gary Wales | last post by:
We have two main query types running against a table of some 2 million rows and have gotten query response down to well under a second by using the right indexes. Problem is that we are running an advertising campaign that brings a concentrated block of users to the site. When this happens one of the queries which relies on a particluar...
11
17534
by: DJJ | last post by:
I am using the MySQL ODBC 3.51 driver to link three relatively small MySQL tables to a Microsoft Access 2003 database. I am finding that the data from the MySQL tables takes a hell of a long time to load making any kind linkage with my Access data virtually useless. I have the MySQL driver setup in as a USER DSN. The MySQL data is...
4
2718
by: psql-mail | last post by:
I am running a SELECT to get all tuples within a given date range. This query is much slwoer than i expected - am i missing something? I have a table 'meta' with a column 'in_date' of type timestamp(0), i am trying to select all records within a given date range. I have an index on 'in_date' and I also have an index on date(in_date). The...
2
2003
by: Yonatan Goraly | last post by:
I am in the process of adding PostgreSQL support for an application, in addition to Oracle and MS SQL. I am using PostgreSQL version 7.3.2, Red Hat 9.0 on Intel Pentium III board. I have a query that generally looks like this: SELECT t1.col1, t2.col1 FROM t1, t2 WHERE t1.x=t2.y AND t2.p='string' AND t2.q=1 This query is strikingly...
4
24442
by: cefrancke | last post by:
Are there any ways to speed up a Cumulative sum in a query or perhaps another faster way to have a cumulative sum column (call a vba function?). For example, I want to sum up all values under 'Amount', and also have a field call 'Cumulative' and have the sum grow with each record. Using "MyTable", the query results are... ID or Date ...
0
2587
by: roiavidan | last post by:
Hi, I'm having a bit of a problem with a small application I wrote in C#, which uses an Access database (mdb file) for storing financial data. After looking for a similiar topic and failing to find one, I'm posting the question in hope some one of you guys out there will have the answer for me...! I'll start with what I have, then I'll...
11
3133
by: Andy_Khosravi | last post by:
My problem: I'm having trouble with a query taking much too long to run; a query without any criteria evaluating only 650 records takes over 300 seconds to run (over the network. On local drive takes 120 seconds). The Setup: I'm running Access 97 non-developer edition. I have exactly zero other tools to use and no way to change that =(. ...
9
19121
by: Emin | last post by:
Dear Experts, I have a fairly simple query in which adding a where clause slows things down by at least a factor of 100. The following is the slow version of the query ------------------------- SELECT * FROM ( Select x.event_date From x FULL OUTER JOIN y ON x.event_date = y.event_date
6
2623
by: Gilles Ganault | last post by:
Hello A friend of mine is running a LAMP (PHP, MySQL, Apache, Debian) Web 2.0 site on a dedicated, hosted server with about 300 connected users when it's really busy. The server is an Intel Celeron 2.4 GHz with 1GB of RAM, a 40GB IDE drive, and a 10Mbps bandwith. Here's what top says:
2
9827
by: existential.philosophy | last post by:
This is a new problem for me: I have some queries that open very slowly in design view. My benchmark query takes about 20 minutes to open in design view. That same query takes about 20 minutes to open in datasheet view. As an experiment, I deleted all rows in all tables; after that, the query took only seconds to open in both design view...
0
7659
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7580
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7634
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7945
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5208
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3634
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2079
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.