![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
We have been considering improving the performance of date-based queries by maintaining two tables: one that contains a row for each event, and another that aggregates events by month. We could support any user query with three table queries: one query against the base table for the beginning of the requested period up until the next month boundary, one query against the aggregate table from that month boundary to the boundary nearest the end of the requested period, and one query against the base table from that month boundary to the end of the requested period. |
#3
| |||
| |||
|
|
We have been considering improving the performance of date-based queries by maintaining two tables: one that contains a row for each event, and another that aggregates events by month. We could support any user query with three table queries: one query against the base table for the beginning of the requested period up until the next month boundary, one query against the aggregate table from that month boundary to the boundary nearest the end of the requested period, and one query against the base table from that month boundary to the end of the requested period. |
#4
| |||
| |||
|
|
We have been considering improving the performance of date-based queries by maintaining two tables: one that contains a row for each event, and another that aggregates events by month. We could support any user query with three table queries: one query against the base table for the beginning of the requested period up until the next month boundary, one query against the aggregate table from that month boundary to the boundary nearest the end of the requested period, and one query against the base table from that month boundary to the end of the requested period. |
#5
| |||
| |||
|
#6
| |||
| |||
|
#7
| |||
| |||
|
#8
| |||
| |||
|
|
On 18.09.2008 00:18, Mark Wilden wrote: If I understand you correctly you want to have overlap between data in tables. |
#9
| |||
| |||
|
|
On 18.09.2008 00:18, Mark Wilden wrote: If I understand you correctly you want to have overlap between data in tables. |
#10
| |||
| |||
|
|
On 18.09.2008 00:18, Mark Wilden wrote: If I understand you correctly you want to have overlap between data in tables. |
![]() |
| Thread Tools | |
| Display Modes | |
| |