The SDKs that come with most scanners are optimized for 1:1 matching. Their performance on 1:1 is only reliable on small record; say 5,000 fingerprints. For fast 1:N matching, you'll have to purchase a commercial solution e.g. ExpressID which claims to match upto 700 Million records per sec on an optimized server. But that comes at a price. This is what equity is currently using for their identification system. If your financial power is wanting, then
http://www.sourceafis.org/ is your friend. It has a respectable matching speed of about 20K-40K fingerprints per sec on a decent computer.