u/greyhat399321 - Archived Voat Post in v/programming
u/greyhat399321
  • home
  • search

u/greyhat399321

0 posts · 1 comment · 1 total

Active in: v/programming (1)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: Pros/Cons of Voat Cost Saving Measure: Compress comment chains into a single db record

Celko nested sets would be most efficient and maintain the ability to infinitely nest records. The only cost is recalculation on the upsert...

If I were to do this, I'd have a key for the thread ID the post goes with and then have a left/right val for each thread:

https://en.wikipedia.org/wiki/Nested_set_model

You should also probably consider whatever model is in place for the voats/karma/comment relationships as that data may be stored discretely to avoid cheating as much as possible since everyone only counts one vote per item.

0 24 Jun 2017 14:58 u/greyhat399321 in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.