I thouhgt I had a big collection with 5,000 songs...
Out of curiosity, What do you need beside : Name; Artist: Album Artist; Album; Grouping; Composer; Genre; Lenght; Track Number; Disc Number; BPM; Kind; Size; Bitrate; Sample Rate; Format; Rating; Artwork; Lyrics?
20,000 song is extreme. You can build different iTunes libraries, that would probably be more easy to manage and help the performance of iTunes.
I have a library for "Comedy"
a library for "podcasts"
and a library for "music"
There is no genre mix-up that way.