Skip to main content
QUICK REVIEW

[Paper Review] Fast, Incremental Inverted Indexing in Main Memory for Web-Scale Collections

Nima Asadi, Jimmy Lin|arXiv (Cornell University)|May 3, 2013
Algorithms and Data CompressionComputer Science30 references4 citations
TL;DR

This paper presents a fast, incremental inverted indexing algorithm that builds compressed postings lists directly in main memory for web-scale collections. It shows that co-locating small groups of discontiguous list segments achieves query performance statistically indistinguishable from fully contiguous lists, making high retrieval speed achievable with minimal complexity in online indexing.

ABSTRACT

For text retrieval systems, the assumption that all data structures reside in main memory is increasingly common. In this context, we present a novel incremental inverted indexing algorithm for web-scale collections that directly constructs compressed postings lists in memory. Designing efficient in-memory algorithms requires understanding modern processor architectures and memory hierarchies: in this paper, we explore the issue of postings lists contiguity. Naturally, postings lists that occupy contiguous memory regions are preferred for retrieval, but maintaining contiguity increases complexity and slows indexing. On the other hand, allowing discontiguous index segments simplifies index construction but decreases retrieval performance. Understanding this tradeoff is our main contribution: We find that co-locating small groups of inverted list segments yields query evaluation performance that is statistically indistinguishable from fully-contiguous postings lists. In other words, it is not necessary to lay out in-memory data structures such that all postings for a term are contiguous; we can achieve ideal performance with a relatively small amount of effort.

Motivation & Objective

  • To design an efficient, incremental inverted indexing algorithm that operates entirely in main memory for web-scale text collections.
  • To investigate the performance tradeoff between postings list contiguity (for faster query evaluation) and indexing complexity (for faster construction).
  • To determine whether maintaining full contiguity of postings lists is necessary for high retrieval performance in main-memory systems.
  • To explore practical optimizations that balance indexing speed, memory usage, and query evaluation efficiency in an online setting.

Proposed method

  • Uses a buffering mechanism to temporarily store postings list segments in memory before coalescing them into compressed, contiguous blocks.
  • Employs PForDelta compression for efficient storage of integer-encoded postings lists, reducing memory footprint.
  • Co-locates small groups of inverted list segments to improve cache locality and reduce pointer chasing during query evaluation.
  • Avoids pre-allocation or complex memory management by using transient buffer maps that are freed after indexing completes.
  • Relies on modern processor cache hierarchies and prefetching to mitigate performance loss from discontiguous memory access.
  • Applies variable-length integer encoding and gap compression to reduce working memory overhead for term positions and other values.

Experimental results

Research questions

  • RQ1To what extent does postings list contiguity affect query evaluation performance in main-memory information retrieval systems?
  • RQ2Can a simpler, faster indexing algorithm that does not enforce full contiguity achieve retrieval performance comparable to fully contiguous postings lists?
  • RQ3How does co-locating small groups of discontiguous list segments impact cache efficiency and overall query speed?
  • RQ4What is the tradeoff between indexing performance (construction speed) and retrieval performance (query latency) when relaxing contiguity constraints?
  • RQ5Can transient buffering and segment coalescing be used to achieve near-optimal performance with minimal memory overhead and complexity?

Key findings

  • Co-locating small groups of discontiguous inverted list segments results in query evaluation performance that is statistically indistinguishable from fully contiguous postings lists.
  • The performance loss from discontiguous postings lists is minimal when segments are grouped effectively, due to improved cache locality and prefetching behavior.
  • Maintaining full contiguity during incremental indexing introduces significant complexity and slows indexing, without providing measurable retrieval benefits when co-location is applied.
  • The proposed buffering-based approach avoids memory fragmentation and does not require pre-allocation, unlike traditional on-disk incremental algorithms.
  • Working memory overhead is transient and manageable—128GB of RAM is sufficient to index 50 million documents (ClueWeb09) using this method.
  • The use of compressed representations (e.g., Rice codes, variable-length integers) reduces buffer memory usage without sacrificing indexing speed or retrieval quality.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.