Is this the most efficient way to get just the tot...
# exposed
f
Is this the most efficient way to get just the total number of records? or will this pull all the records and then count?
Copy code
EmploymentTable.selectAll().count()
s
Do this and find out what sql is generated
Copy code
transaction {
     addLogger(StdOutSqlLogger)
     EmploymentTable.selectAll().count()
}
f
Thank you for the tip, I didn't know about the
addLogger
method.
👍 1