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

replacing fetch_array with fetch_assoc #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

matthiaz
Copy link

fetch_array returns an array that contains the results of fetch_row and fetch_assoc making it twice as big than need be.
I don't think we have a case where we use both at the same time, so we shouldn't use fetch_array. We should use fetch_assoc and where we can fetch_row.

fetch_array returns an array that contains the results of fetch_row and fetch_assoc making it twice as big than need be.
I don't think we have a case where we use both at the same time, so we shouldn't use fetch_array. We should use fetch_assoc and where we can fetch_row.
@spekary
Copy link
Member

spekary commented May 31, 2018

This appears to be failing. fetch_array may be used for performance reasons. Database result unpacking is a performance bottleneck. fetch_array avoids the step where the database driver has to query for the names of the database fields and then associate those names with the results.

What problem are you trying to solve?

@matthiaz
Copy link
Author

matthiaz commented May 31, 2018 via email

@matthiaz
Copy link
Author

matthiaz commented Nov 6, 2018

@spekary it's failing on hhvm. But I don't understand why. Can you see why this is happening?

@spekary
Copy link
Member

spekary commented Nov 6, 2018

Its saying CodeGen is undefined. Its probably a case problem. Maybe it should be Codegen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants