It isn't either-or. It is the processing of millions of rows over the large in-list which is taking the time. Processing an in-list as a hash table would be great, but no one has gotten around to it implementing it yet. Maybe Dmitry will be the one to do that.
Thanks. Yes, I want. But... Is this task too complex for novice?
Yes, it is probably too complex for a novice. On the other hand, you might not be a novice anymore once you complete it!