Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rex_sql: Abfragen ohne Buffer ermöglichen #965

Closed
gharlan opened this issue Jan 19, 2017 · 2 comments · Fixed by #968
Closed

rex_sql: Abfragen ohne Buffer ermöglichen #965

gharlan opened this issue Jan 19, 2017 · 2 comments · Fixed by #968
Labels
Enhancement Improvements for existing features
Milestone

Comments

@gharlan
Copy link
Member

gharlan commented Jan 19, 2017

Es sollte eine Möglichkeit geben, für einzelne Abfragen PDO::MYSQL_ATTR_USE_BUFFERED_QUERY deaktivieren zu können.
http://www.php.net/manual/en/ref.pdo-mysql.php
http://stackoverflow.com/a/6935271

@staabm
Copy link
Member

staabm commented Jan 19, 2017

dies ist nötig um den php speicher bei sehr großen resultssets nicht zu sprengen.

spontan würde ich sowas wie rex_sql::setUnbufferedQuery() einführen.
eine api um direkt die pdo attribute zu setzen würde ich vermeiden wollen.

@tbaddade
Copy link
Member

oder als dritten Parameter für die Methode?
setQuery($query, $params, $buffer = true)

@gharlan gharlan added the Enhancement Improvements for existing features label Jan 19, 2017
@gharlan gharlan added this to the REDAXO 5.3 milestone Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improvements for existing features
Development

Successfully merging a pull request may close this issue.

3 participants