orientjs icon indicating copy to clipboard operation
orientjs copied to clipboard

rid bags (?)

Open iw2rmb opened this issue 9 years ago • 7 comments

I have a vertex with edges of 4 diff classes. There are 36 edges by each of two classes and by one edge on rest of.

select from #vertex shows me all edges in orient studio

but orientjs leaves first two classes empty (like have no edges) why?

rid bags are disabled

iw2rmb avatar Sep 06 '15 23:09 iw2rmb

my bad — there are 42 edges for each of two classes so it seems like a rid bags issue sorry for noob question, how can i set RID_BAG_EMBEDDED_TO_SBTREEBONSAI_THRESHOLD without java?

config set index.embeddedToSbtreeBonsaiThreshold 1000 has no effect

iw2rmb avatar Sep 06 '15 23:09 iw2rmb

Per your recommendation on README.md: "it is strongly recommended that you set RID_BAG_EMBEDDED_TO_SBTREEBONSAI_THRESHOLD to a very large value, e.g. 2147483647." , I haven't been able to find in the documentation or in forums clear instructions on how to set this configuration property.

I'm trying the following in my local orientdb installation:

bin/server.sh -DridBag.embeddedToSbtreeBonsaiThreshold=2147483647 

but I'm not sure if the var is actually set or not. Is this the correct way of setting it up?

Thanks!

dmunguia avatar Dec 16 '15 05:12 dmunguia

Any update on this ?

Something similar happend with me as well.

Created more than 40 edges between two nodes, then I could see them in the studio but not using orientjs.

After updating the setting embeddedToSbtreeBonsaiThreshold, edges between new nodes are working fine (I can create more than 40 edges and fetch them) but for the initial node (for which I was not able to fetch records using orientjs before increasing the limit), I still cannot fetch edges.

I had to drop and recreate new nodes :(

royalpinto avatar Mar 16 '17 15:03 royalpinto

hi @royalpinto

the setting embeddedToSbtreeBonsaiThreshold does not change the created nodes

The support for Tree-Based Ridbag is not yet implemented.

wolf4ood avatar Mar 16 '17 15:03 wolf4ood

Thanks @maggiolo00 for the quick reply. I noticed that opening node/vertex from studio and saving it (update) fixes the node which was created before setting the limit. Not sure how effective it is, but at least I could fetch edges of it from orientjs.

royalpinto avatar Mar 16 '17 18:03 royalpinto

Any ways to update nodes created before applying in the setting embeddedToSbtreeBonsaiThreshold ?

If I update nodes from studio, (open node and hit save), edges can be fetched from orientjs. Please let me know if there is any way to update previously created nodes programatically.

I have tried updating nodes by update query but no luck :( Ex: update users set updatedAt = sysdate()

I tried inspecting studio to see what it's doing. It's basically making a PUT request with all the fields. Not sure which field is fixing the node.

royalpinto avatar Mar 20 '17 14:03 royalpinto

It will be supported in protocol V37

https://github.com/orientechnologies/orientjs/issues/251

wolf4ood avatar Jul 24 '17 15:07 wolf4ood