This is an example of a site with a large DB (~ 10 M galleries here)
We still have categories just to prove the script can handle it
We have search box at the top of each page
bla bla bla bla bla
bla bla bla bla bla
bla bla bla bla bla
This is the video I made a few years ago, it is posted in other places including here but I decided to bring it back along with the new version that I made recently