fix(oracle): speed up schema diff and add comment sync (closes #198)
- Replace ALL_OBJECTS with ALL_TABLES UNION ALL_VIEWS in list_databases query to avoid slow full scan on large Oracle instances - Add loading indicator in SchemaDiffDialog during database/schema loading - Generate COMMENT ON TABLE/COLUMN statements in schema diff sync SQL - Compare column and table comments in diff detection
This commit is contained in:
1 parent
1934205c86
commit
7c38af6cbb
3 files changed
+73
-7
No files matched your search
@@ -62,9 +62,9 @@ pub async fn list_databases(conn: &OracleClient) -> Result<Vec<DatabaseInfo>, St
|
||||
"WITH schema_names AS ( \
|
||||
SELECT SYS_CONTEXT('USERENV', 'CURRENT_SCHEMA') AS owner FROM DUAL \
|
||||
UNION \
|
||||
SELECT DISTINCT owner \
|
||||
FROM all_objects \
|
||||
WHERE object_type IN ('TABLE', 'VIEW') \
|
||||
SELECT DISTINCT owner FROM all_tables \
|
||||
UNION \
|
||||
SELECT DISTINCT owner FROM all_views \
|
||||
) \
|
||||
SELECT owner \
|
||||
FROM schema_names \
|
||||
|
||||
Reference in new issue
Block a user