Code Monkey home page Code Monkey logo

hindexer's People

Contributors

jgeiser9 avatar kilpatty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hindexer's Issues

Allow to work as a non-plugin

Currently hindexer only works as a plugin to HSD.

Ideally, this would be able to be run as an external service. I think the easiest way to transition the code to this is to move the "connect" blocks to a file that is only called if it's included as a plugin, otherwise we call the rpc methods and potentially listen to the HSD client via web sockets to add blocks.

Everything else can pretty much stay the same, we just have to change the "connection" code.

Break DB into its own file

Right now we have the db initialization and config inside of the indexer file -> I'd like to pull this to it's own file so that it's more structured and easily seen.

Batch DB Inserts for Better Performance

Right now syncing ~14,000 blocks into a PG database is taking my laptop just under 5 minutes. We can speed this up drastically by batching the inserts rather than doing each one individually.

Do not fail on DB connection issues

Right now hindexer will crash the entire node if it can't connect to postgres.

We should handle these errors gracefully, and just crash hindexer not the entire hsd node.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.