Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Phalcon Model::find($parameters); calls information_schema.tables :( :(

24 views
Skip to first unread message

James Wang

unread,
Jun 14, 2016, 6:10:11 AM6/14/16
to
Hi All,

Phalcon find function adds extra queries:

SELECT IF(COUNT(*)>0, 1 , 0) FROM `INFORMATION_SCHEMA`.`TABLES` WHERE `TABLE_NAME`='mytable';
DESCRIBE `mytable`;

How to avoid this please?

Thanks a lot in advance

James Wang

unread,
Jun 14, 2016, 7:00:46 AM6/14/16
to
Actually, it is \Phalcon\Mvc\Model which made these two extra queries

Jerry Stuckle

unread,
Jun 14, 2016, 11:58:43 AM6/14/16
to
Try Phalcon support. They know their product better than anyone else.

--
==================
Remove the "x" from my email address
Jerry Stuckle
jstu...@attglobal.net
==================

Arno Welzel

unread,
Jun 17, 2016, 2:27:28 AM6/17/16
to
James Wang, 2016-06-14 12:10:

> Hi All,
>
> Phalcon find function adds extra queries:
>
> SELECT IF(COUNT(*)>0, 1 , 0) FROM `INFORMATION_SCHEMA`.`TABLES` WHERE `TABLE_NAME`='mytable';
> DESCRIBE `mytable`;
>
> How to avoid this please?

Better you ask here - I don't think, that anyone here can help you:

<https://forum.phalconphp.com/>


--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
http://fahrradzukunft.de
0 new messages