Git Product home page Git Product logo

Comments (6)

roadscape avatar roadscape commented on September 28, 2024 1

all implemented except for post id map

from hivemind.

roadscape avatar roadscape commented on September 28, 2024

Based on profiling, post id map has marginal benefits right now. Managing cached post flushing is more important and being handled in alt-cache branch.

from hivemind.

roadscape avatar roadscape commented on September 28, 2024

post cache

               edit   vote  reply  new
post_id                             x
author                              x
permlink                            x
category                            x
depth                               x
children                       x    x
title           x                   x
preview         x                   x
body            x                   x
img_url         x                   x
payout                  x           x
promoted                x           x
payout_at               x           x
updated_at      x                   x
created_at                          x
rshares                 x           x
votes                   x           x
json            x                   x
is_nsfw         x                   x
is_paidout              x           x
sc_trend                x           x
sc_hot                  x           x
flag_weight             x           x
total_votes             x           x
up_votes                x           x
is_hidden               x           x
is_grayed               x           x
author_rep              x           x
raw_json        x       x           x
is_declined     x                   x
is_full_power   x                   x

minimal raw_json for reference:

{
  "id": 20164398,
  "root_comment": 20096395,
  "curator_payout_value": "0.000 SBD",
  "net_votes": 0,

  "parent_author": "sergioss",
  "parent_permlink": "re-anacristinasilva-pedras-no-caminho-20171211t145336052z",
  "max_accepted_payout": "1000000.000 SBD",
  "allow_replies": true,
  "allow_votes": true,
  "allow_curation_rewards": true,
  "beneficiaries": [],
  "url": "/writing/@anacristinasilva/pedras-no-caminho#@anacristinasilva/re-sergioss-re-anacristinasilva-pedras-no-caminho-20171212t011639135z",
  "root_title": "Pedras no caminho...",
}

from hivemind.

roadscape avatar roadscape commented on September 28, 2024

accounts

             update    post    vote   sweep
name            x                        
proxy           x                       x
post_count              x
reputation                      x
proxy_weight                            x
vote_weight                             x
kb_used         -       -       -       x
active_at               x       x
cached_at       x       ?       ?       x
display_name    x               
about           x
location        x
website         x
profile_image   x
cover_image     x
raw_json        x                       x

from hivemind.

roadscape avatar roadscape commented on September 28, 2024

Results of segmented hpc writes:

0.80ms per vote (before: 1.1+)
1.00ms per update (before: 1.1+)
0.67ms per insert (no change)

 12.6%  208367ms      0.80avg   262055x -- UPDATE hive_posts_cache SET payout = :payout, promoted = :promoted, rshares = :rshares, votes = :votes, sc_trend = :sc_trend, sc_hot = :sc_hot, flag_weight = :flag_weight, total_vo
 11.7%  192930ms      1.00avg   192297x -- UPDATE hive_posts_cache SET created_at = :created_at, payout_at = :payout_at, updated_at = :updated_at, title = :title, preview = :preview, body = :body, img_url = :img_url, is_nsf
  6.1%  100382ms      0.67avg   149649x -- INSERT INTO hive_posts_cache (post_id, author, permlink, category, depth, created_at, payout_at, updated_at, title, preview, body, img_url, is_nsfw, is_declined, is_full_power, is_

from hivemind.

roadscape avatar roadscape commented on September 28, 2024

Completed in #82

from hivemind.

Related Issues (20)

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.