microsoft / spring-data-gremlin

We are in the process of deprecating Spring Data Gremlin. -- Provide generic annotation oriented programming form based on gremlin for graph database
Other
129 stars 76 forks source link

timeout exception occurs when trying to import a graph #247

Closed tschn closed 3 years ago

tschn commented 5 years ago

Your issue may already be reported! Please search before creating a new one.

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Snapshot Code for Reproduce


        Map<String, Raptas> raptasMap = new HashMap<>();
        raptas.stream().forEach((Raptas rapta) -> {
            raptasMap.put(rapta.getRaptaId(), rapta);
        });

        List<RaptaRapta> edges = new ArrayList<>();
        raptas.stream().forEach((Raptas rapta) -> {
                    if (raptasMap.get(rapta.getRefRaptaId()) != null) {
                        edges.add(new RaptaRapta(rapta.getRaptaId() + "_" + rapta.getRefRaptaId(), rapta, raptasMap.get(rapta.getRefRaptaId())));
                    }
                }
        );

        this.network.getEdges().addAll(edges);
        this.network.getVertexes().addAll(raptas);
        this.networkRepository.save(this.network);

Branch

Your Environment

superrdean commented 5 years ago

Thanks for your feedback, we will inspect it and give you a response later.

chenrujun commented 3 years ago

Closing this issue. Because it's not active for a long time. If anyone have similar issue, please create issue in new repo: https://github.com/Azure/azure-sdk-for-java/issues