Hi Abhishek,
Hard to say you should profile the queries as indicated at [1], to see the
compiler and execution plans and where the time is being take performing query.
If you can provide this for the problem query and one that works well we might
be able to say more ...
Best Regards
Hugh Williams
Professional Services
OpenLink Software, Inc. // http://www.openlinksw.com/
Weblog -- http://www.openlinksw.com/blogs/
LinkedIn -- http://www.linkedin.com/company/openlink-software/
Twitter -- http://twitter.com/OpenLink
Google+ -- http://plus.google.com/100570109519069333827/
Facebook -- http://www.facebook.com/OpenLinkSoftware
Universal Data Access, Integration, and Management Technology Providers
[1] http://docs.openlinksw.com/virtuoso/databaseadmsrv.html#readingqueryprofile
On 17 Jan 2014, at 09:48, Abhishek Gupta <abhishekgupta.i...@gmail.com> wrote:
> I have a graph on which I run following query:
>
> SELECT ?b,?c,?rel1,?d,?rel2,?g,?y
> WHERE{
> <something1> ?b ?c . ?c ?rel1 ?d. ?d ?rel2 ?g. <something2> ?y ?g.
> }
>
> It takes about 23 seconds. Now, if I execute following queries:
>
> 1. Find all nodes (and relationships) from <something1> (?c)
> 2. Find all nodes (and relationships) from above (?d1)
> 3. Find all nodes (and relationships) from <something2> (?g)
> 4. Find all nodes (and relationships) from above (?d2)
>
> Find paths using the above four using simple python functions. This process
> takes less than a second.
>
> Is there anything that I am doing wrong here?
>
> Regards
> Abhishek
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk_______________________________________________
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users