View Issue Details

IDProjectCategoryView StatusLast Update
0006140MMW v4Playlist / Searchpublic2009-11-06 23:14
ReporterOwynAssigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.1.2 
Target Version3.1.2Fixed in Version3.1.2 
Summary0006140: Searchbar does not search Encoder and some others fields after Optimize DB action
DescriptionFTS search for data in Encoder does not work. Either no or erroneous results returned.

See http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=44121
TagsNo tags attached.
Fixed in build1287

Activities

rusty

2009-11-05 15:11

administrator   ~0019570

Ludek, can you please have a look at this? I cannot reproduce the problem, but i want to make sure that it's not a lurking/more generalized regression.

Owyn

2009-11-05 15:20

updater   ~0019571

Don't know if it is relevant but I tested DB Maintenance recently (within the last month). If I remember correctly it rebuilds SongsText as part of the process.

Owyn

2009-11-05 15:46

updater   ~0019572

Hmmm. http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=37368#p227758

Also note reference to having optimized database.

Ludek

2009-11-05 19:13

developer   ~0019574

Last edited: 2009-11-05 19:18

Owyn, thanks!

You've done a great observation, it is really related to the DB Maintenance where is a bug in the rebuild process of the SongsText as you proposed.

It is not problem only for Encoder, but also for Publisher, Copyright, Original Lyricist.

It will be fixed in the next build, but the Maintain Library -> Optimize Database (Complete) will need to be performed again in order to fix it.

rusty

2009-11-05 19:23

administrator   ~0019575

Last edited: 2009-11-05 19:27

You're right--on my machine (Win7), after an Optimize database (complete) operation, searches of the encoder field (using the Searchbar) no longer work. Strangely, though, performing an optimization doesn't consistently trigger this bug.

What is even weirder, is that searches using the 'Search > Basic > Any text Field' also stop working for the Encoder field (which doesn't match REIKA's experience)!!

Based on the link that you provided, I suspect the problem also occurs with other fields.

Ludek

2009-11-05 19:46

developer   ~0019576

Last edited: 2009-11-05 19:48

Fixed in build 1286.

i.e. performing
Maintain Library -> Optimize Database (Complete)
with build 1286 fixes the problem.

Ludek

2009-11-05 21:15

developer   ~0019580

The bug was in the
Maintain Library -> Optimize Database (Complete)
process itself so for the users that used the 'Maintain Library -> Optimize Database (Complete)' in MM 3.1 the bug occurs and they need to perform again
'Maintain Library -> Optimize Database (Complete) '
to fix it.

Owyn

2009-11-05 21:25

updater   ~0019581

Is there a way to test for re-Optimization required and alert the user?

Ludek

2009-11-05 23:58

developer   ~0019587

Last edited: 2009-11-05 23:59

Maybe via a small script that would compare this 2 SQL queries:

=> Query 1:

SELECT ID FROM Songs WHERE Songs.ID IN (SELECT rowid FROM SongsText WHERE SongsText MATCH ' encoder: MediaMonkey* ')

=> Query 2:

SELECT ID FROM Songs WHERE (Songs.Encoder like 'MediaMonkey%')

the results should be same.

Owyn

2009-11-06 03:54

updater   ~0019591

Verified in 1286

Ludek

2009-11-06 18:17

developer   ~0019606

Last edited: 2009-11-06 18:20

Re-opened, because this issue still exists for 'Original Artists' and 'Original Title' fields:
http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=37368&st=0&sk=t&sd=a&start=15

Ludek

2009-11-06 18:21

developer   ~0019607

Fixed in build 1287.

Owyn

2009-11-06 22:04

updater   ~0019614

Verified in 1287 for "orginalartist:elvis" (that failed in 1286).