Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-19-2020 08:58 AM
Suppose I have my existing Neo4J and I want to scramble the data inside, so I can run tests against it but I don't want the DB to have the real data, although to have the same amount of data as the "real" one.
What would be the best way to do that?
Is there some APOC functions that can be launched to scramble some of the nodes / properties?
06-19-2020 11:28 AM
I don't know of a function that can automatically scramble (perhaps in part because the definition of scramble is subjective). Do you wish to hide just the specifics, or the data domain as well?
My first thought was that it should be possible to create a cypher to read all the properties of every node and relationship, then change the values to something random based on type, however that would leave the property names intact, and also probably just create an unusable graph? Also the basic "structure" of the graph would remain intact and sometimes that can be revealing in and of itself.
All the sessions of the conference are now available online