View Issue Details

IDProjectCategoryView StatusLast Update
0003368MMW v4DB/FileMonitorpublic2007-08-24 20:42
Reporterjiri Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.0 
Fixed in Version3.0 
Summary0003368: Make DB queries faster
DescriptionTechnical: Currently in MM 3.0 all queries to Songs table use SELECT DISTINCT, which was needed in some cases. However, I found out that it slows down the queries significantly (about a factor of 2).

Since DISTINCT isn't definitely needed in most cases, it should be removed. It isn't needed for ordinary nodes, I guess that the main reason was using it for Search node, but even there it probably isn't necessary in all cases, maybe the queries can be constructed so that it won't be necessary at all?
TagsNo tags attached.
Fixed in build1059

Relationships

related to 0002936 resolvedLudek Songs can appear multiple times in query results 

Activities

jiri

2007-08-09 09:38

administrator   ~0010079

Assigning to Ludek, feel free to discuss with me.

Ludek

2007-08-11 10:32

developer   ~0010103

Fixed in build 1059.

The DISTINCTs were removed from main DB query (creating of common SELECT part)
because the DISTINCT was presented only due to bug 2936 that was fixed another way without using a DISTINCT.

rusty

2007-08-24 20:42

administrator   ~0010322

No regressions discovered.