You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "wonderfulxin (via GitHub)" <gi...@apache.org> on 2024/07/08 12:42:36 UTC
[I] i use shardingjdbc 5.3.2 ,SchemaMetaData load very slow [shardingsphere]
wonderfulxin opened a new issue, #32040:
URL: https://github.com/apache/shardingsphere/issues/32040
SchemaMetaData load very slow
i use shardingjdbc 5.3.2
'''
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-jdbc-core</artifactId>
<version>5.3.2</version>
</dependency>
'''
but when i load SchemaMetaData ,it is very slow,i don't know why?just because my data is too big??
each.get() is very very very slow!!! how to solve it? thinks!!
'''
public static Map<String, SchemaMetaData> load(final Collection<SchemaMetaDataLoaderMaterial> materials) throws SQLException {
Map<String, SchemaMetaData> result = new LinkedHashMap<>(materials.size(), 1);
Collection<Future<Collection<SchemaMetaData>>> futures = new LinkedList<>();
for (SchemaMetaDataLoaderMaterial each : materials) {
futures.add(EXECUTOR_SERVICE.submit(() -> load(each)));
}
try {
for (Future<Collection<SchemaMetaData>> each : futures) {
mergeSchemaMetaDataMap(result, each.get());
}
} catch (final InterruptedException | ExecutionException ex) {
if (ex.getCause() instanceof SQLException) {
throw (SQLException) ex.getCause();
}
throw new UnknownSQLException(ex).toSQLException();
}
return result;
}
'''
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] i use shardingjdbc 5.3.2 ,SchemaMetaData load very slow [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on issue #32040:
URL: https://github.com/apache/shardingsphere/issues/32040#issuecomment-2216349050
What kind of the database do you use?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] i use shardingjdbc 5.3.2 ,SchemaMetaData load very slow [shardingsphere]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #32040:
URL: https://github.com/apache/shardingsphere/issues/32040#issuecomment-2246214345
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] i use shardingjdbc 5.3.2 ,SchemaMetaData load very slow [shardingsphere]
Posted by "wonderfulxin (via GitHub)" <gi...@apache.org>.
wonderfulxin commented on issue #32040:
URL: https://github.com/apache/shardingsphere/issues/32040#issuecomment-2216357303
> What kind of the database do you use?
mysql !! and my table have 1000 table
so i look at the inner code it will load all table's scheme
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] i use shardingjdbc 5.3.2 ,SchemaMetaData load very slow [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu closed issue #32040: i use shardingjdbc 5.3.2 ,SchemaMetaData load very slow
URL: https://github.com/apache/shardingsphere/issues/32040
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] i use shardingjdbc 5.3.2 ,SchemaMetaData load very slow [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on issue #32040:
URL: https://github.com/apache/shardingsphere/issues/32040#issuecomment-2217505126
Could you try to version 5.5.0? Improvements have been made here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org