Question: why ldap is faster than database?
Answer: Here's the difference between the two: LDAP is highly optomized for reads, it can do them much faster than your MySQL database can, so it will scale much better than your database solution will in the long run which is optomized for reads and writes. ... LDAP really shines is scalability.