Skip to content
Snippets Groups Projects
Commit 2282d27c authored by Ankur Dave's avatar Ankur Dave
Browse files

Cache msgsByPartition

parent bc234bf0
No related branches found
No related tags found
No related merge requests found
......@@ -486,7 +486,8 @@ object GraphImpl {
.flatMap { case (vid, (vdata, pids)) =>
pids.iterator.map { pid => MessageToPartition(pid, (vid, vdata)) }
}
.partitionBy(eTable.partitioner.get) //@todo assert edge table has partitioner
.partitionBy(eTable.partitioner.get).cache()
// @todo assert edge table has partitioner
val vTableReplicationMap: IndexedRDD[Pid, VertexIdToIndexMap] =
msgsByPartition.mapPartitionsWithIndex( (pid, iter) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment