blockchain2graph | Blockchain2graph extracts blockchain data | Blockchain library
kandi X-RAY | blockchain2graph Summary
kandi X-RAY | blockchain2graph Summary
Blockchain2graph extracts blockchain data (bitcoin) and insert them into a graph database (neo4j).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Execute the batch
- Sets the current process step
- Sets the block height
- Process block data
- Load transactions from a block
- Gets the block result
- Performs benchmark
- Returns the java mail sender
- Get block data
- Gets the raw transaction result
- Compares two Bitcoin transactions
- Returns a description for the Bitcoin address
- This method compares two Bitcoin transactions
- Used by BitcoinBlock
- Utility method for using Bitcoin address
- Gets the block count
- Compare two transactions
- This method compares two inputs
- Initialize URL and authentication
- Return a human - readable description of the script
- Gets the details of a block
- Gets block hash
- Gets block count from cache
- Gets raw transaction
- Get block count
- Creates and indexes and indexes
blockchain2graph Key Features
blockchain2graph Examples and Code Snippets
Community Discussions
Trending Discussions on blockchain2graph
QUESTION
I'm the owner of the Blockchain2graph project that reads data from Bitcoin core rest API and insert Blocks, Addresses and Transactions as Graph objects in Neo4j.
After some imports, the process is slowing down until the memory is full. I don't want to use CSV imports. My problem is not performance, my goal is to insert things without the application stopping because of memory (even if it takes quite a lot of time)
I'm using spring-boot-starter-data-neo4j.
In my code, I try to make session.clear
from times to times but it doesn't seem to have an impact. After restarting tomcat8, things go fast again.
ANSWER
Answered 2017-Mar-13 at 00:12As your project is about mass inserts, I wouldn't use an OGM like Spring Data Neo4j for writing the data.
You don't want a session to keep your data around on the client.
Instead, use Cypher directly sending updates you get from the BlockChain API directly as a batch per request, see my blog post for some examples (some of which we also use in SDN/Neo4j-OGM under the hood).
You can still use SDN for individual entity handling (CRUD) that's what OGMs are good for in my book to reduce the boilerplate.
But for more complex read operations that have aggregation, filtering, projection and path matches I'd still use Cypher on an annotated repository method, returning rows that can be mapped to a list of DTOs.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install blockchain2graph
You can use blockchain2graph like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the blockchain2graph component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page