![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In article<f7157fe4-6baa-47cf-ab78-6826a3e75980 (AT) fe9g2000vbb (DOT) googlegroups.com>, "terry433iid (AT) yahoo (DOT) com"<terry433iid (AT) googlemail (DOT) com> wrote: I have a series of mysql stored procedures that query thousands of records over 60 tables. these are quite slow and user has to wait 10 or 15minutes for results (I use a JSP to run the query and diusplay data in html) I can run these stored procedures out-of-hours (via cron) so as to avoid the long wait......but where could I temporarily store the data so that I can query/retrieve it very quickly the next day? Do I need to create permemant tables that hold the output of the stored procedures? (this is big overhead that I'd like to avoid) So basically I need to be able to dump the data on a nightly basis (or even hourly) and then have it instantly when I query it in a secondary/ temporary location any ideas???? Fix your broken database design. It appears that the database has been designed to support storing data, but not to support retrieving it. That's backward. Design it so it supports the most commonly run queries, efficiently. |
#3
| |||
| |||
|
|
I have a series of mysql stored procedures that query thousands of records over 60 tables. these are quite slow and user has to wait 10 or 15minutes for results (I use a JSP to run the query and diusplay data in html) I can run these stored procedures out-of-hours (via cron) so as to avoid the long wait......but where could I temporarily store the data so that I can query/retrieve it very quickly the next day? Do I need to create permemant tables that hold the output of the stored procedures? (this is big overhead that I'd like to avoid) So basically I need to be able to dump the data on a nightly basis (or even hourly) and then have it instantly when I query it in a secondary/ temporary location any ideas???? |
#4
| |||
| |||
|
|
In article<ilq6r9$b9g$1 (AT) news (DOT) eternal-september.org>, Bill B<me (AT) privacy (DOT) net> wrote: On 3/16/2011 8:19 AM, Doug Miller wrote: In article<f7157fe4-6baa-47cf-ab78-6826a3e75980 (AT) fe9g2000vbb (DOT) googlegroups.com>, "terry433iid (AT) yahoo (DOT) com"<terry433iid (AT) googlemail (DOT) com> wrote: I have a series of mysql stored procedures that query thousands of records over 60 tables. these are quite slow and user has to wait 10 or 15minutes for results (I use a JSP to run the query and diusplay data in html) I can run these stored procedures out-of-hours (via cron) so as to avoid the long wait......but where could I temporarily store the data so that I can query/retrieve it very quickly the next day? Do I need to create permemant tables that hold the output of the stored procedures? (this is big overhead that I'd like to avoid) So basically I need to be able to dump the data on a nightly basis (or even hourly) and then have it instantly when I query it in a secondary/ temporary location any ideas???? Fix your broken database design. It appears that the database has been designed to support storing data, but not to support retrieving it. That's backward. Design it so it supports the most commonly run queries, efficiently. Doug, are you referring to database normalization and relational theory? No. Well, not entirely. Normalization is part of proper database design, but it's quite possible to construct a database that's fully normalized and still doesn't support efficient performance of the queries that are most frequently run against it. There is a discussion of this at http://dev.mysql.com/tech-resources/...alization.html where the author refers to the "spreadsheet syndrome." Same thing? Not the same thing. |
#5
| |||
| |||
|
|
I have a series of mysql stored procedures that query thousands of records over 60 tables. these are quite slow and user has to wait 10 or 15minutes for results (I use a JSP to run the query and diusplay data in html) The first thing to do is to examine your database design (structure, |
|
I can run these stored procedures out-of-hours (via cron) *so as to avoid the long wait......but where could I temporarily store the data so that I can query/retrieve it very quickly the next day? Do I need to create permemant tables that hold the output of the stored procedures? (this is big overhead that I'd like to avoid) Why is creating a "permanent" table any more overhead than creating a |
|
So basically I need to be able to dump the data on a nightly basis (or even hourly) and then have it instantly when I query it in a secondary/ temporary location any ideas???? See above |
#6
| |||
| |||
|
|
On 3/16/2011 8:19 AM, Doug Miller wrote: In article<f7157fe4-6baa-47cf-ab78-6826a3e75980 (AT) fe9g2000vbb (DOT) googlegroups.com>, "terry433iid (AT) yahoo (DOT) com"<terry433iid (AT) googlemail (DOT) com> wrote: I have a series of mysql stored procedures that query thousands of records over 60 tables. these are quite slow and user has to wait 10 or 15minutes for results (I use a JSP to run the query and diusplay data in html) I can run these stored procedures out-of-hours (via cron) so as to avoid the long wait......but where could I temporarily store the data so that I can query/retrieve it very quickly the next day? Do I need to create permemant tables that hold the output of the stored procedures? (this is big overhead that I'd like to avoid) So basically I need to be able to dump the data on a nightly basis (or even hourly) and then have it instantly when I query it in a secondary/ temporary location any ideas???? Fix your broken database design. It appears that the database has been designed to support storing data, but not to support retrieving it. That's backward. Design it so it supports the most commonly run queries, efficiently. Doug, are you referring to database normalization and relational theory? |
|
There is a discussion of this at http://dev.mysql.com/tech-resources/...alization.html where the author refers to the "spreadsheet syndrome." Same thing? |
#7
| |||
| |||
|
|
In article<ilqau5$qh2$1 (AT) news (DOT) eternal-september.org>, Bill B<me (AT) privacy (DOT) net> wrote: On 3/16/2011 8:52 AM, Doug Miller wrote: In article<ilq6r9$b9g$1 (AT) news (DOT) eternal-september.org>, Bill B<me (AT) privacy (DOT) net wrote: On 3/16/2011 8:19 AM, Doug Miller wrote: In article<f7157fe4-6baa-47cf-ab78-6826a3e75980 (AT) fe9g2000vbb (DOT) googlegroups.com>, "terry433iid (AT) yahoo (DOT) com"<terry433iid (AT) googlemail (DOT) com> wrote: I have a series of mysql stored procedures that query thousands of records over 60 tables. these are quite slow and user has to wait 10 or 15minutes for results (I use a JSP to run the query and diusplay data in html) I can run these stored procedures out-of-hours (via cron) so as to avoid the long wait......but where could I temporarily store the data so that I can query/retrieve it very quickly the next day? Do I need to create permemant tables that hold the output of the stored procedures? (this is big overhead that I'd like to avoid) So basically I need to be able to dump the data on a nightly basis (or even hourly) and then have it instantly when I query it in a secondary/ temporary location any ideas???? Fix your broken database design. It appears that the database has been designed to support storing data, but not to support retrieving it. That's backward. Design it so it supports the most commonly run queries, efficiently. Doug, are you referring to database normalization and relational theory? No. Well, not entirely. Normalization is part of proper database design, but it's quite possible to construct a database that's fully normalized and still doesn't support efficient performance of the queries that are most frequently run against it. There is a discussion of this at http://dev.mysql.com/tech-resources/...alization.html where the author refers to the "spreadsheet syndrome." Same thing? Not the same thing. Any references you find most useful for understanding this? Any book or tutorial on database design would be a good starting point. |
#8
| |||
| |||
|
|
In article <ilq6r9$b9... (AT) news (DOT) eternal-september.org>, Bill B <m... (AT) privacy (DOT) net> wrote: On 3/16/2011 8:19 AM, Doug Miller wrote: In article<f7157fe4-6baa-47cf-ab78-6826a3e75... (AT) fe9g2000vbb (DOT) googlegroups.com>, "terry433... (AT) yahoo (DOT) com"<terry433... (AT) googlemail (DOT) com> *wrote: I have a series of mysql stored procedures that query thousands of records over 60 tables. these are quite slow and user has to wait 10 or 15minutes for results (I use a JSP to run the query and diusplay data in html) I can run these stored procedures out-of-hours (via cron) *so as to avoid the long wait......but where could I temporarily store the data so that I can query/retrieve it very quickly the next day? Do I need to create permemant tables that hold the output of the stored procedures? (this is big overhead that I'd like to avoid) So basically I need to be able to dump the data on a nightly basis (or even hourly) and then have it instantly when I query it in a secondary/ temporary location any ideas???? Fix your broken database design. It appears that the database has been designed to support storing data, but not to support retrieving it. That's backward. Design it so it supports the most commonly run queries, efficiently. Doug, are you referring to database normalization and relational theory? No. Well, not entirely. Normalization is part of proper database design, but it's quite possible to construct a database that's fully normalized and still doesn't support efficient performance of the queries that are most frequently run againstit. |
#9
| |||
| |||
|
|
On 3/16/2011 8:52 AM, Doug Miller wrote: In article<ilq6r9$b9g$1 (AT) news (DOT) eternal-september.org>, Bill B<me (AT) privacy (DOT) net wrote: On 3/16/2011 8:19 AM, Doug Miller wrote: In article<f7157fe4-6baa-47cf-ab78-6826a3e75980 (AT) fe9g2000vbb (DOT) googlegroups.com>, "terry433iid (AT) yahoo (DOT) com"<terry433iid (AT) googlemail (DOT) com> wrote: I have a series of mysql stored procedures that query thousands of records over 60 tables. these are quite slow and user has to wait 10 or 15minutes for results (I use a JSP to run the query and diusplay data in html) I can run these stored procedures out-of-hours (via cron) so as to avoid the long wait......but where could I temporarily store the data so that I can query/retrieve it very quickly the next day? Do I need to create permemant tables that hold the output of the stored procedures? (this is big overhead that I'd like to avoid) So basically I need to be able to dump the data on a nightly basis (or even hourly) and then have it instantly when I query it in a secondary/ temporary location any ideas???? Fix your broken database design. It appears that the database has been designed to support storing data, but not to support retrieving it. That's backward. Design it so it supports the most commonly run queries, efficiently. Doug, are you referring to database normalization and relational theory? No. Well, not entirely. Normalization is part of proper database design, but it's quite possible to construct a database that's fully normalized and still doesn't support efficient performance of the queries that are most frequently run against it. There is a discussion of this at http://dev.mysql.com/tech-resources/...alization.html where the author refers to the "spreadsheet syndrome." Same thing? Not the same thing. Any references you find most useful for understanding this? |
#10
| |||
| |||
|
|
I have a series of mysql stored procedures that query thousands of records over 60 tables. these are quite slow and user has to wait 10 or 15minutes for results (I use a JSP to run the query and diusplay data in html) I can run these stored procedures out-of-hours (via cron) so as to avoid the long wait......but where could I temporarily store the data so that I can query/retrieve it very quickly the next day? Do I need to create permemant tables that hold the output of the stored procedures? (this is big overhead that I'd like to avoid) So basically I need to be able to dump the data on a nightly basis (or even hourly) and then have it instantly when I query it in a secondary/ temporary location any ideas???? |

![]() |
| Thread Tools | |
| Display Modes | |
| |