Ebean uses ints for row counts and paging (first row and page size). Although this may be sufficient for most applications, databases are getting better at supporting large tables, for example using partitioning. We are currently working on a statistical application and expect one of the tables to exceed the 2^31 rows within a year.