+1

quinta-feira, 26 de Março de 2015 às 17:45:12 UTC, BK escreveu:
>
> Creating/deleting edges causes the version numbers of the connected 
> vertices to change, and based on Andrey Lomakin's posts, this has been the 
> behavior for a while (I'm using v2.0).  From his responses to similar 
> questions, I've tried changing this behavior so that vertex versions remain 
> unchanged when modifying edges: setting 
> ridBag.embeddedToSbtreeBonsaiThreshold to -1 as a property in the console 
> window as well as using `alter database custom 
> ridBag.embeddedToSbtreeBonsaiThreshold=-1`.  The vertex versions are still 
> being changed.
>
> 1. If this behavior is still configurable, what are the specific steps to 
> configure it?  
> 2. Can someone also provide a little more information about the pros/cons 
> of such a configuration, and why the default is that edge changes affect 
> the vertex versions?
>
> Thanks!
>
> Example showing version changes:
> orientdb {db=zDummy}> create class TestItem extends V
> Class created successfully. Total classes in database now: 13
> orientdb {db=zDummy}> create class TestEdge extends E
> Class created successfully. Total classes in database now: 14
>
> orientdb {db=zDummy}> insert into TestItem set name = "TestItem 0"
> Inserted record 'TestItem#13:0{name:TestItem 0} v1' in 0.002000 sec(s).
> orientdb {db=zDummy}> insert into TestItem set name = "TestItem 1"
> Inserted record 'TestItem#13:1{name:TestItem 1} v1' in 0.001000 sec(s).
> orientdb {db=zDummy}> select from TestItem
>
> ----+-----+--------+----------
> #   |@RID |@CLASS  |name
> ----+-----+--------+----------
> 0   |#13:0|TestItem|TestItem 0
> 1   |#13:1|TestItem|TestItem 1
> ----+-----+--------+----------
>
> 2 item(s) found. Query executed in 0.002 sec(s).
> orientdb {db=zDummy}> display 0
>
>
> +-------------------------------------------------------------------------------------------------+
> | Document - @class: TestItem                              @rid: #13:0     
>       @version: 1      |
>
> +-------------------------------------------------------------------------------------------------+
> |                     Name | Value                                         
>                        |
>
> +-------------------------------------------------------------------------------------------------+
> |                     name | TestItem 0                                   
>                         |
>
> +-------------------------------------------------------------------------------------------------+
>
> orientdb {db=zDummy}> display 1
>
>
> +-------------------------------------------------------------------------------------------------+
> | Document - @class: TestItem                              @rid: #13:1     
>       @version: 1      |
>
> +-------------------------------------------------------------------------------------------------+
> |                     Name | Value                                         
>                        |
>
> +-------------------------------------------------------------------------------------------------+
> |                     name | TestItem 1                                   
>                         |
>
> +-------------------------------------------------------------------------------------------------+
>
> orientdb {db=zDummy}> create edge TestEdge from #13:0 to #13:1
> Created edge '[TestEdge#14:0{out:#13:0,in:#13:1} v3]' in 0.004000 sec(s).
>
> orientdb {db=zDummy}> select from TestItem
>
> ----+-----+--------+----------+------------+-----------
> #   |@RID |@CLASS  |name      |out_TestEdge|in_TestEdge
> ----+-----+--------+----------+------------+-----------
> 0   |#13:0|TestItem|TestItem 0|[size=1]    |null
> 1   |#13:1|TestItem|TestItem 1|null        |[size=1]
> ----+-----+--------+----------+------------+-----------
>
> 2 item(s) found. Query executed in 0.001 sec(s).
> orientdb {db=zDummy}> display 0
>
>
> +-------------------------------------------------------------------------------------------------+
> | Document - @class: TestItem                              @rid: #13:0     
>       @version: 2      |
>
> +-------------------------------------------------------------------------------------------------+
> |                     Name | Value                                         
>                        |
>
> +-------------------------------------------------------------------------------------------------+
> |                     name | TestItem 0                                   
>                         |
> |             out_TestEdge | [#14:0]                                       
>                        |
>
> +-------------------------------------------------------------------------------------------------+
>
> orientdb {db=zDummy}> display 1
>
>
> +-------------------------------------------------------------------------------------------------+
> | Document - @class: TestItem                              @rid: #13:1     
>       @version: 2      |
>
> +-------------------------------------------------------------------------------------------------+
> |                     Name | Value                                         
>                        |
>
> +-------------------------------------------------------------------------------------------------+
> |                     name | TestItem 1                                   
>                         |
> |              in_TestEdge | [#14:0]                                       
>                        |
>
> +-------------------------------------------------------------------------------------------------+
>
> orientdb {db=zDummy}> delete edge #14:0
> Delete record(s) '1' in 0.003000 sec(s).
>
> orientdb {db=zDummy}> select from TestItem
>
> ----+-----+--------+------------+----------+-----------
> #   |@RID |@CLASS  |out_TestEdge|name      |in_TestEdge
> ----+-----+--------+------------+----------+-----------
> 0   |#13:0|TestItem|[size=0]    |TestItem 0|null
> 1   |#13:1|TestItem|null        |TestItem 1|[size=0]
> ----+-----+--------+------------+----------+-----------
>
> 2 item(s) found. Query executed in 0.001 sec(s).
> orientdb {db=zDummy}> display 0
>
>
> +-------------------------------------------------------------------------------------------------+
> | Document - @class: TestItem                              @rid: #13:0     
>       @version: 3      |
>
> +-------------------------------------------------------------------------------------------------+
> |                     Name | Value                                         
>                        |
>
> +-------------------------------------------------------------------------------------------------+
> |             out_TestEdge | []                                           
>                         |
> |                     name | TestItem 0                                   
>                         |
>
> +-------------------------------------------------------------------------------------------------+
>
> orientdb {db=zDummy}> display 1
>
>
> +-------------------------------------------------------------------------------------------------+
> | Document - @class: TestItem                              @rid: #13:1     
>       @version: 3      |
>
> +-------------------------------------------------------------------------------------------------+
> |                     Name | Value                                         
>                        |
>
> +-------------------------------------------------------------------------------------------------+
> |              in_TestEdge | []                                           
>                         |
> |                     name | TestItem 1                                   
>                         |
>
> +-------------------------------------------------------------------------------------------------+
>
> orientdb {db=zDummy}> properties
> PROPERTIES:
> +-------------------------------+--------------------------------+
> | NAME                          | VALUE                          |
> +-------------------------------+--------------------------------+
> | collectionMaxItems            | 10                             |
> | backupBufferSize              | 1048576                        |
> | debug                         | false                          |
> | backupCompressionLevel        | 9                              |
> | limit                         | 20                             |
> | width                         | 150                            |
> | maxBinaryDisplay              | 150                            |
> | ignoreErrors                  | false                          |
> | ridBag.embeddedToSbtreeBonsaiThreshold| -1                             |
> | verbose                       | 2                              |
> +-------------------------------+--------------------------------+
>
> orientdb {db=zDummy}> config
>
> LOCAL SERVER CONFIGURATION:
> +------------------------------------+--------------------------------+
> | NAME                               | VALUE                          |
> +------------------------------------+--------------------------------+
> ...
> | ridBag.sbtreeBonsaiToEmbeddedToThreshold= -1                             
> |
> ...
> +------------------------------------+--------------------------------+
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to