How to reduce Neo4j Storage Size? - neo4j

I am using neo4j version 3.0.3. I am Having 126815 user Nodes and 6016519 Realtions for those Nodes.Every thing is fine but Neo4j is taken for storing this data nearly 51.18 GiB. How can we reduce this data storage.

Try store-utils: https://github.com/jexp/store-utils
Just clone the repo, use the branch which fits your database version, build and run it.

Related

What to do with "branched" folders in neo4j

We've been running a embedded neo4j instance and using the high availability features to ensure a downtimeless roll-over deploy.
We're obviously doing something wrong because we get a 'branched/' folder inside our neo4j database folder. I guess this means that we have branching data (i.e. master switchover doesn't work correctly).
My question is: "what can I do with it?
can it be safely moved over to a developers workstation while the database is running?
can we delete it from the server (while the database is running)?
Is there an api or tool to see the changes inside the branched folder?

How to delete docker image data or layer in nexus3

I'm trying out nexus oss 3.0.1-01. I have a docker repository setup and I'm able to push and pull images successfully. But I need a way delete images. For docker, deleting a component won't actually delete the actual image layers from the file system because it maybe referred to by other components. So, what is the proper way to handle it?
I even deleted every single components and then ran a scheduled task to compact blob store. But that didn't seem to do much in terms of free up storage space.
My understanding is that there isn't a feature in nexus3 at the moment. If there is, could you please point me to some documentation on it? Otherwise, how is everyone else managing their storage space for docker repository?
We had a user contribute this recently:
https://gist.github.com/lukewpatterson/bf9d19410094ea8bced1d4bb0523b67f
You can read about usage here: https://issues.sonatype.org/browse/NEXUS-9293
As well, a supported feature for this will be coming soon from Sonatype.
This is something that needs to be provided at the Docker Registry level. Currently it appears to be broken on v3.1
Did you try to go to assets and delete the layers? If that did not remove the files from the blob store, along with compact blob store, then it is a Nexus problem.
Make sure to tack this issues and confirm that this is the desired behavior for 3.2
See issues
https://issues.sonatype.org/browse/NEXUS-9497
https://issues.sonatype.org/browse/NEXUS-9293
In Nexus 3.14 you go to WebUI -> Tasks -> Create -> Docker - Delete unused manifests and images
Then another job Admin - Compact blob store to actually rm the files from the Nexus directory.
Before that you need to delete the Nexus components (using the cleanup policy+job), as original poster did.

Can we restore to previous commit in neo4j?

Is there any way to restore data from neo4j?
I just lost all data and want to restore to previous state of neo4j.
Please help me with this.
Neo4J Server must be configured to run backups. If your server wasn't configured to create backups, then there is not a way to restore your data using Neo4J. This is controlled by the Neo4J config option online_backup_enabled.
This feature is enabled by default in Neo4J 2.1.6 Enterprise. However, you have to manually run a backup in order for one to be created. So, unless you ran a backup, then you aren't going to find one which was automatically taken anywhere on your system. Sorry :-(
In the future, you can configure and run backups following the Neo4J documentation.

Does Neo4j backup/restore mean Export/Import of graph database?

I am new to graph database technique (switching from relational db).
In neo4j there is option of backup strategy and restoring of graph database. While doing development my team should be able to have same graph db.
Is it same concept as export/import of relational databases?
Does webadmin of neo4j option of export/import like of phpmyadmin?
A Neo4j backup basically creates a consistent full copy of the binary representation of your graph. You can move the directory created with neo4j-backup directly to data/graph.db directory of your server and start Neo4j. So the import step gets reduced to simply copying stuff over.
In graph databases, data is stored as key=>pair. So there is no any schema stored in engine.
In neo4j data is stored on data folder. In neo4j, backup and restoring of graph database is same as export/import in relational database like mysql.
Currently there is no option to backup/restore from webadmin. We can do it from console.
I use $NEO4J_HOME/bin/neo4j-shell -c dump > myDump.cypher
Then from web Console you can import the file and run it.
Or even with the same tool you can import:
./bin/neo4j-shell -v -file myDump.cypher

Purge Abandoned Change-Ids from Gerrit for good

On Gerrit Web UI, I do not see a way to purge Change-Ids in "Abandoned" state.
While trying out Gerrit we created a good number of Change-Ids that are required to go
away from the Web UI.
Is cleaning from DB directly using SQL scripts, the only alternative?
Gerrit: version 2.4.2
OS: RedHat Based
Please let me know if you require any additional information.
Thanks
Yes, purging the DB is the only way (currently) to completely delete changes. They also will still exist in the repository under the refs/changes/ branch, but won't show up in the Web UI once the database has been purged.

Resources