Coder Social home page Coder Social logo

hacker-news-resolve's People

Contributors

krutilin avatar superroma 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

hacker-news-resolve's Issues

HackerNews importer aggressive network usage

Importing only one HackerNews story affects invoking more than 30000 tcp + udp packets, which is very redundant. Performing import is necessary when event structure had been changed. It's not very frequent operation while development, but non rare too.

For example, only resolving IP-address of HackerNews website by DNS performs hundred and hundred times repeatably. import_hn.log.
In comparation, two minutes of 4K youtube video consumes only approximate 1900 tcp packets and works very well. youtube.log

Issue faced on Ubuntu 16.04.1 LTS on VirtualBox 5.2.0, virtual network adapter is:
82540EM Gigabit Ethernet Controller (pm pcix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation, autonegotiation=on broadcast=yes driver=e1000 driverversion=7.3.21-k8-NAPI duplex=full ip=10.0.2.15 latency=64 link=yes mingnt=255 multicast=yes port=twisted pair speed=1Gbit/s)

Most likely, that current importer implementation performs big traffic flood, which can be handled by physical adapter, but very much for virtual.

Increase fetch timeout and fix output error

npm run import  ✓  11912  11:35:57

[email protected] import /Users//Documents/hacker-news-resolve
babel-node ./import
Import has been started. Press Crtl+C to stop import
Data importing from news.ycombinator.com [===-----------------] 142/989Fetch timeout (10000 ms)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] import: babel-node ./import
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] import script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/
/.npm/_logs/2017-10-31T08_37_40_174Z-debug.log

ROOT_DIR does not work properly

Original resolve-scripts package supports ability for setup ROOT_DIR, which meant application can be run for specified subdirectory. But Hacker-news front-end part itself does not support this ability

Import from original HackerNews website fails

Import has been started. Press Crtl+C to stop import
TypeError: Cannot read property 'forEach' of undefined
    at /home/osboxes/hacker-news-resolve/import/importer.js:137:5
    at Array.reduce (<anonymous>)
    at getUniqueStoryIds (/home/osboxes/hacker-news-resolve/import/importer.js:136:29)
    at _callee4$ (/home/osboxes/hacker-news-resolve/import/importer.js:151:10)
    at tryCatch (/home/osboxes/hacker-news-resolve/node_modules/regenerator-runtime/runtime.js:65:40)
    at Generator.invoke [as _invoke] (/home/osboxes/hacker-news-resolve/node_modules/regenerator-runtime/runtime.js:303:22)
    at Generator.prototype.(anonymous function) [as next] (/home/osboxes/hacker-news-resolve/node_modules/regenerator-runtime/runtime.js:117:21)
    at step (/home/osboxes/hacker-news-resolve/import/importer.js:55:191)
    at /home/osboxes/hacker-news-resolve/import/importer.js:55:361
    at <anonymous>

Building a reading model failed "ERROR: syntax error at or near "WHERE"

Describe the bug
Read-model

To Reproduce
Steps to reproduce the behavior:

  1. Read-model projection
await store.update('Users', { id: aggregateId }, { $set: changes })

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

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.