Skip to content
Discussion options

You must be logged in to vote

add_path() is a helper that ensures that path is present in the current index. If it wasn't there, its count and latest are 0, which means that entry will get pruned during normalization before writing to the disk (because count 0 is less than default 0.5 threshold).

The register_visit() is basically add_path() plus extra manipulation with count and latest. The result is not pruned during normalization.

You can see the currently active index and what effect add_path / register_visit have on it with :=MiniVisits.get_index().

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@krovuxdev
Comment options

@echasnovski
Comment options

@krovuxdev
Comment options

@echasnovski
Comment options

@krovuxdev
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.visits
2 participants