Skip to content

xissy/lexorank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lexorank

Go Report Card

A simple implementation of LexoRank

LexoRank is a ranking system introduced by Atlassian JIRA.

Background

What is the best representation of an ordered list in a database? With a dumb order number based ranking system, re-ordering a row of a list may require updating all rows of the list in a transaction, which is O(n).

LexoRank makes it O(1). All you need to do is updating the re-ordered row's order field.