NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Indexes Analysis for Matching Subscriptions in RSS feeds

Zeinab Hmedeh, Harris Kourdounakis, Vassilis Christophides, Cédric du Mouza, Micheł Scholl, Nicolas Travers2013

TL;DR

This paper tackles the scalability challenge of matching user subscriptions to incoming RSS/Atom feed items. The authors propose and analyze three indexing structures – Count-based Inverted List (CIL), Ranked-key Inverted List (RIL), and Patricia Ordered Trie (POT) – to efficiently filter relevant content in real-time. Their experimental evaluation reveals that POT offers significant performance advantages, especially for large-scale systems, while RIL provides a good balance of memory and speed.

What Problem Does This Paper Address?

The explosion of online content, particularly through RSS/Atom feeds, has created a need for efficient ways for users to stay informed about topics they care about. This is known as the Publish/Subscribe (Pub/Sub) paradigm. However, as the number of subscriptions and incoming items grows, naive matching becomes computationally infeasible. The core problem is developing indexing structures that can quickly and accurately identify which subscriptions match incoming news items, especially when dealing with millions of subscriptions and a vast vocabulary of terms. This paper focuses on "broad match semantics," where a subscription matches an item if all its keywords are present in the item.

Methods

The authors investigate three indexing techniques:

  • Count-based Inverted List (CIL): This method uses inverted lists where each term points to a list of subscriptions containing that term. A counter is maintained for each subscription to track how many of its terms have been matched.
  • Ranked-key Inverted List (RIL): A variation of CIL, RIL optimizes by adding a subscription to the posting list of only its least frequent term (the "key"). This reduces redundancy and the need for explicit counters.
  • Patricia Ordered Trie (POT): This is a trie-based structure that exploits common prefixes among subscriptions to create a more compact representation. It's a variant of a Patricia Trie that compacts unary nodes.

They develop analytical models to predict memory requirements and matching times for these structures and then conduct a thorough experimental evaluation to compare their performance under various workload parameters.

Datasets

The paper uses a combination of real and synthetic datasets:

  • Real Data: A large-scale testbed of 10.7 million items collected from 8,000 productive feeds over an 8-month period (March-October 2010). A vocabulary of 1.5 million distinct terms was extracted from this data.
  • Synthetic Subscriptions: Subscriptions were generated using the ALIAS sampling method based on the real item vocabulary. These subscriptions were characterized by vocabulary size, occurrence distribution (real, uniform, inverse), and length (fixed or distributed, with a distribution similar to web queries).

Key Insights and Ideas

  • Factorization is Key for Tries: The POT structure's ability to factorize common prefixes among subscriptions significantly reduces the number of nodes compared to simpler trie structures or inverted lists, leading to better memory efficiency and faster matching.
  • Term Order Matters for Tries: The order in which terms are processed when building a trie (e.g., by frequency) impacts both the size and matching performance. Frequency-based ordering generally leads to better factorization.
  • Distribution Impacts Matching, Not Size: While the occurrence distribution of terms in subscriptions doesn't significantly affect the size of the indexes, it has a dramatic impact on matching time. This is because it influences how effectively subscriptions can be pruned.
  • POT Outperforms for Large-Scale Systems: For large numbers of subscriptions, POT consistently shows superior matching performance, often by orders of magnitude, due to its efficient pruning capabilities.
  • RIL as a Strong Compromise: RIL offers memory requirements close to CIL but with matching times much closer to POT, making it a good all-around choice.

Key Results

  • Memory: POT's memory footprint is more sensitive to vocabulary size than CIL/RIL. For 10M subscriptions and a large vocabulary, POT can consume 2-3 times more memory than CIL/RIL.
  • Matching Time:
    • For 10M subscriptions, RIL and POT outperform CIL by one to two orders of magnitude.
  • POT is significantly faster than RIL for small vocabularies, but RIL becomes competitive or better for larger vocabularies.
  • The number of visited nodes during matching is drastically reduced by POT, especially with certain term distributions (e.g., inverse distribution).
  • Indexing Time: IL building time is generally faster than POT.
  • Scalability: All indexes scale linearly with the number of subscriptions.

Limitations and Future Work

  • POT Memory Overhead: The concrete representation of POT nodes, despite abstract node factorization, leads to higher memory requirements compared to IL-based structures.
  • ROT Analysis Limitations: The analytical model for ROT is limited to smaller vocabularies and subscription lengths.
  • Future Work: The authors suggest extending the matching process to consider similarity scores between subscriptions and items, potentially by weighting terms or incorporating taxonomic relationships. They also plan to study the behavior of these indexes in parallel and distributed settings.

Summary updated

BibTeX
@misc{hmedeh2013indexes,
  author = {Zeinab Hmedeh and Harris Kourdounakis and Vassilis Christophides and Cédric du Mouza and Micheł Scholl and Nicolas Travers},
  title = {{Indexes Analysis for Matching Subscriptions in RSS feeds}},
  year = {2013},
}

Loading related content...

Figure