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

Remove COUNT(*) from createObject #66

Open
markwillis82 opened this Issue Apr 11, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@markwillis82
Copy link
Collaborator

markwillis82 commented Apr 11, 2015

Is there a better method to check if a table exists? (maybe SHOW CREATE TABLE? or even a SELECT * LIMIT 1)

https://github.com/modxcms/xpdo/blob/master/xpdo/om/mysql/xpdomanager.class.php#L131

This ends up counting the whole table just to see if it exists (also not great for upcoming INNODB support)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment