Remove COUNT(*) from createObject #66

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

Projects

None yet

1 participant

@markwillis82
Collaborator

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