简体   繁体   English

如何从OrientDB并行读取所有数据

[英]How read in parallel all data from OrientDB

I want read all data from Orientdb database and I dont want get an iterator, I want read in some way all data in parallel by chunks from distinct pc across the network. 我想从Orientdb数据库中读取所有数据,而又不想得到一个迭代器,我想以某种方式通过网络中不同PC的块并行读取所有数据。 There is any way to read database´s clusters in parallel or any other way to do this? 有什么方法可以并行读取数据库的群集,或者有其他方法可以读取?

I have seen the Spark connector for Orientdb, they query directly the clusters of the Orientdb classes in order to read the values of a complete class in parallel. 我已经看到了Orientdb的Spark连接器,它们直接查询Orientdb类的集群,以便并行读取完整类的值。

Orient-Spark Git-code 东方火花 Git代码

You can use PARALLEL in a SELECT query. 您可以在SELECT查询中使用PARALLEL。

See: https://orientdb.com/docs/last/SQL-Query.html 请参阅: https//orientdb.com/docs/last/SQL-Query.html

PARALLEL Executes the query against x concurrent threads, where x refers to the number of processors or cores found on the host operating system of the query. PARALLEL针对x个并发线程执行查询,其中x表示在查询的主机操作系统上找到的处理器或内核的数量。 You may find PARALLEL execution useful on long running queries or queries that involve multiple cluster. 您可能会发现PARALLEL执行对长时间运行的查询或涉及多个集群的查询很有用。 For simple queries, using PARALLEL may cause a slow down due to the overhead inherent in using multiple threads. 对于简单查询,由于使用多个线程固有的开销,使用PARALLEL可能会导致速度变慢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM