perf: Implement faster sync methods for mysql (#49011)
* perf: Implement faster sync methods for postgres Fixes #48575 Pulls work from redshift into the common postgres driver. * Fix tests and formatting * Move nested-field-column sync to sync functions so describe-fields will also get them * Fix test * Fix test * Remove fixed safety test * Add test specific database-supports feature for pk metadata * Fix test * perf: faster mysql sync with describe-fields Fixes: #49010 * Adrress PR feedback * Fix tests * Fix test * Add nil table-schema * Don't use subselect for field-comment * Fix quoting weird identifiers * Make format string inline * Update src/metabase/driver/mysql.clj Co-authored-by:metamben <103100869+metamben@users.noreply.github.com> * Update src/metabase/driver/mysql.clj Co-authored-by:
metamben <103100869+metamben@users.noreply.github.com> * Fix tests * Fix database-type * Fix tests * Fix test * Fix tests * Exclude mysql table_schema * Handle tinyInt1IsBit * Fix test * Only get one db at a time --------- Co-authored-by:
metamben <103100869+metamben@users.noreply.github.com>
Showing
- src/metabase/driver/mysql.clj 56 additions, 0 deletionssrc/metabase/driver/mysql.clj
- src/metabase/driver/sql_jdbc/sync/describe_table.clj 6 additions, 6 deletionssrc/metabase/driver/sql_jdbc/sync/describe_table.clj
- test/metabase/driver/sql_jdbc/sync/describe_table_test.clj 10 additions, 5 deletionstest/metabase/driver/sql_jdbc/sync/describe_table_test.clj
- test/metabase/driver_test.clj 4 additions, 3 deletionstest/metabase/driver_test.clj
Loading
Please register or sign in to comment