Re: Help on Query with DATE BETWEEN not performant
It is to return the list of all the IDs that are later filtered by the date,
which represents the "main" list on which other groupings are done ...
For our needs we have 4 queries ... they all are based on the "main" query but just the output is different ....
For one query we show all the media types grouped by the type of media
Another is grouped by the contract id
Then in another, we show all the keywords from all articles that were fetched in some period
and the last one shows real articles, 10 per page ... by using LIMIT x,y
We also show the number of all articles in this search ... first, we hade another query for the count , but now we just sum-up everything we get from media type query, cause this is actually the total of all articles anyway ... this way we removed the need for one additional query ...
As I said above, the "main" query we were talking about was/is the foundation of all other queries ... and cause that one was slow, everything was slow ...
Thank you.
Kris
Subject
Views
Written By
Posted
2688
February 02, 2020 06:51PM
1006
February 02, 2020 07:13PM
965
February 02, 2020 10:30PM
946
February 03, 2020 04:16AM
938
February 03, 2020 08:12AM
1638
February 03, 2020 10:45AM
1002
February 03, 2020 11:20AM
911
February 03, 2020 12:02PM
916
February 03, 2020 12:26PM
930
February 03, 2020 04:19PM
1678
February 03, 2020 06:21PM
953
February 03, 2020 08:38PM
Re: Help on Query with DATE BETWEEN not performant
1686
February 04, 2020 01:03PM
1081
February 04, 2020 01:42PM
1774
February 04, 2020 02:48PM
1682
February 04, 2020 05:26PM
1405
February 04, 2020 05:27PM
917
February 06, 2020 04:21PM
1185
February 06, 2020 04:31PM
1671
February 06, 2020 10:57PM
1338
February 09, 2020 08:46AM
927
February 09, 2020 11:48AM
1721
February 09, 2020 05:04PM
845
February 04, 2020 04:12PM