You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a DB that's currently at 17k songs (and growing). Some search terms can produce a lot of results, like:
@mpd.wherefile:'.'@mpd.whereany:'e'
Calls like this take 1.3 seconds on the server before they return. In my interface I then go on to truncate the results to the first 500. I'd like to be able to:
@mpd.where{file:'.'},{limit:500}
and have the results limited for me.
I realize that this requires MPD support. I've posted a feature request on the MPD forum.
(FWIW, I also tried modifying build_songs_list in parser.rb to accept an optional limit, to reduce the number of songs created in the map. Reducing the map set from 16883 songs to 500 songs only reduced the time from 1.27s to 1.23s, a negligible savings.)
The text was updated successfully, but these errors were encountered:
The library is currently a bit behind, we're currently supporting all features up to 0.18 (#16), I think. We'd have to go and pull out any protocol changes listed for 0.19 and 0.20 http://git.musicpd.org/cgit/master/mpd.git/plain/NEWS
I have a DB that's currently at 17k songs (and growing). Some search terms can produce a lot of results, like:
Calls like this take 1.3 seconds on the server before they return. In my interface I then go on to truncate the results to the first 500. I'd like to be able to:
and have the results limited for me.
I realize that this requires MPD support. I've posted a feature request on the MPD forum.
(FWIW, I also tried modifying
build_songs_list
inparser.rb
to accept an optional limit, to reduce the number of songs created in the map. Reducing the map set from 16883 songs to 500 songs only reduced the time from 1.27s to 1.23s, a negligible savings.)The text was updated successfully, but these errors were encountered: