Hi All!
Trying to find a way to fix this bug (wrong counted rows with "group"-queries), I've found that... the convenient parser to build would be really too complex and really hard for the server.
Then I'm thinking about an other way to handle "SELECT" queries ie remove the "LIMIT" clause that was added by PMA and use: - "mysql_data_seek" to move to the first record that should be displayed; - a pointer to get only n records.
Of course this will increase a bit the server charge but not too much since MySQL applies the LIMIT clause in a second time (it applies it on the internal result array obtained from the SELECT statement).
Does anybody have a better solution?
Regards, Loïc
______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif
Hi,
I think that by removing LIMIT and using data_seek, we will have memory problems SELECTing large tables and sending them in the PHP "result" variable.
"a pointer to get only n records": how do you do that?
mysql_unbuffered_query is available in PHP >= 4.0.6.
Marc
Loïc a écrit :
Hi All!
Trying to find a way to fix this bug (wrong counted rows with "group"-queries), I've found that... the convenient parser to build would be really too complex and really hard for the server.
Then I'm thinking about an other way to handle "SELECT" queries ie remove the "LIMIT" clause that was added by PMA and use:
- "mysql_data_seek" to move to the first record that should be displayed;
- a pointer to get only n records.
Of course this will increase a bit the server charge but not too much since MySQL applies the LIMIT clause in a second time (it applies it on the internal result array obtained from the SELECT statement).
Does anybody have a better solution?
Regards, Loïc
Hi All,
What about this ? : http://www.zend.com/codex.php?id=535&single=1 May be interresting.
Yours,
Armel. ................................................................ Webmaster PHPIndex http://www.phpindex.com webmaster@phpindex.com ................................................................
Yes! but can it work without an intermediary file on disk?
Marc
Armel FAUVEAU a écrit :
Hi All,
What about this ? : http://www.zend.com/codex.php?id=535&single=1 May be interresting.
Yours,
Armel. ................................................................ Webmaster PHPIndex http://www.phpindex.com webmaster@phpindex.com ................................................................
Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
Hi all,
Yes! but can it work without an intermediary file on disk?
Yes, it can :) Note that, this script use gzcompress(), so...Zlib support enable. Would you like that i look if i can add this feature on the CVS ?
Yours,
Armel.
................................................................ Webmaster PHPIndex http://www.phpindex.com webmaster@phpindex.com ................................................................
Hi all,
I add zip dump support. It seems to work fine, so i commit this on CVS. Please test :)
Regards,
Armel.
................................................................ Webmaster PHPIndex http://www.phpindex.com webmaster@phpindex.com ................................................................