I know this is an old thread, but I was curious about it too, mostly the hard limit of books the Calibre database can hold.
Calibre uses a sqlite database, and according to
the SQLite documentation, the theoretical maximum number of rows in a table is 2*64 (no superscript?), which is....a very big number. Though you'll reach the 140
terabyte database size limit long before that number.