Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9201821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:06:40+00:00 2026-06-17T23:06:40+00:00

We have a use case where we need to to use graph db.There are

  • 0

We have a use case where we need to to use graph db.There are around

10000 nodes and 1000000 edges (approx).

Now i need to query like this. For any 2 vertex find all possible paths between them.

How much time origntDb will take for it?I want retrival time to be very minimal.Is this supported by orientDB?

The distance of two vertex will be around 20.But each vertex may have around 10 outgoing edges.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T23:06:41+00:00Added an answer on June 17, 2026 at 11:06 pm

    For all paths between vertex 1 and 2 in Gremlin, do:

    g.v(1).out.loop(1){true}{it.object.id==2}.path
    

    Of course, all possible paths are infinite if you have cycles, so you will probably want to do this:

    g.v(1).out.loop(1){true}{it.object.id==2}.path[0..100]
    

    …to get at most 100 paths. You can also do this to remove cyclic paths:

    g.v(1).out.simplePath.loop(2){true}{it.object.id==2}.path[0..100]
    

    Marko.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a use case where I need to call a (non-static) method in
I have a use case where I only need to store certain fields to
I have a strong use case for pre-allocating all the memory I need upfront
I have following use-case: there are several assemblies decorated with ProtoContract classes and I
I have this use case of an xml file with input like Input: <abc
I have a use case with NServiceBus explained in this question. Essentially there is
I have an use case where I need to download selected jar files from
I am pretty new to android. I have a use case where I need
In Zend Framework, I have a common use case where I need to propagate
I have a use case where I need to export this specific piece of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.