We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

SQL_CALC_FOUND_ROWS

who use SQL_CALC_FOUND_ROWS how use it in phalcon?

About the only time I've ever used that feature is when I'm doing pagination. With Phalcon, it has it's own pagination functionality, so I just use that.



25.0k

ok. If i have query whith 10 joins, how count rows? Copry query with COUNT(...)?

About the only time I've ever used that feature is when I'm doing pagination. With Phalcon, it has it's own pagination functionality, so I just use that.

The Pagination functionality can accept any query.

If you're not using pagination, you have to run a second query: SELECT FOUND_ROWS()



25.0k

FOUND_ROWS() return 0 (

The Pagination functionality can accept any query.

If you're not using pagination, you have to run a second query: SELECT FOUND_ROWS()