Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-14-2018 11:38 AM
For neo4j-admin import, if I have a header file that looks like this:
userid:ID,zipcode:int
Is there any way I can cast my userID as long? Perhaps in the relationship file? Something like this
:START_ID:long, :END_ID:long
The userIDs are rather lengthy strings so id like to cast them to longs to save space
09-15-2018 12:48 PM
You can use globally --id-type integer
but that's for all ids.
Afaik it's not possible per type.
You could change it later, .e.g. with
call apoc.periodic.iterate("
MATCH (u:User) RETURN u
","
SET u.userid = toInteger(u.userid)
",{batchSize:10000,iterateList:true, parallel:true})
All the sessions of the conference are now available online