Alfredas,
AFAIK there is a limit on the number of Relationship types is max
32000 in the cache layer, a bit higher in the storage layer. Mattias
has been doing a branch for more in order to support Rene Pickhard in
his Activity Stream algo that uses types heavily, see
http://www.rene-pickhardt.de/data-structure-for-social-news-streams-on-graph-data-bases/
but that is not in master.

So, I think a property on the relationships is a better way to go right now.

Also updated the docs to reflect this, see
https://github.com/neo4j/manual/commit/796ef8d2e3bf99df7410f53e37860296e6b616c6

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

brew install neo4j && neo4j start
heroku addons:add neo4j



On Tue, Nov 29, 2011 at 6:58 PM, Alfredas Chmieliauskas
<alfredas...@gmail.com> wrote:
> Dear all,
>
> after creating some relations i get the error
> org.neo4j.kernel.impl.nioneo.store.UnderlyingStorageException: Id
> capacity exceeded
> See trace below.
>
> I have to create around 1m relations. Out of those there are 100'000
> different types of relations. Probably the number of relation types
> this is the cause of the problem. Alternatively I could create 1 type
> of relation but add a property to identify them. I just want to be
> sure about the cause of the error and if there are any configurable
> ways to get around it...
>
> Alfredas
>
> org.neo4j.kernel.impl.nioneo.store.UnderlyingStorageException: Id
> capacity exceeded
>        at 
> org.neo4j.kernel.impl.nioneo.store.IdGeneratorImpl.assertIdWithinCapacity(IdGeneratorImpl.java:170)
>        at 
> org.neo4j.kernel.impl.nioneo.store.IdGeneratorImpl.nextId(IdGeneratorImpl.java:161)
>        at 
> org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.nextId(CommonAbstractStore.java:393)
>        at 
> org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.nextId(NeoStoreXaDataSource.java:428)
>        at 
> org.neo4j.kernel.impl.nioneo.xa.NioNeoDbPersistenceSource.nextId(NioNeoDbPersistenceSource.java:111)
>        at 
> org.neo4j.kernel.impl.persistence.IdGenerator.nextId(IdGenerator.java:43)
>        at 
> org.neo4j.kernel.impl.core.DefaultRelationshipTypeCreator$RelTypeCreater.run(DefaultRelationshipTypeCreator.java:98)
> org.neo4j.graphdb.TransactionFailureException: Unable to create
> relationship type 4791005
>        at 
> org.neo4j.kernel.impl.core.DefaultRelationshipTypeCreator.getOrCreate(DefaultRelationshipTypeCreator.java:58)
>        at 
> org.neo4j.kernel.impl.core.RelationshipTypeHolder.createRelationshipType(RelationshipTypeHolder.java:142)
>        at 
> org.neo4j.kernel.impl.core.RelationshipTypeHolder.addValidRelationshipType(RelationshipTypeHolder.java:81)
>        at 
> org.neo4j.kernel.impl.core.NodeManager.createRelationship(NodeManager.java:289)
>        at 
> org.neo4j.kernel.impl.core.NodeImpl.createRelationshipTo(NodeImpl.java:495)
>        at 
> org.neo4j.kernel.impl.core.NodeProxy.createRelationshipTo(NodeProxy.java:197)
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to