This document discusses the implementation of 4D indexing in PostGIS 2.2 with PostgreSQL 9.5, specifically for optimizing user ranking queries in the Tantan app. It outlines the creation and use of multi-dimensional indexes incorporating popularity, age, and activity, showing various query examples and optimization techniques. The presentation emphasizes the complexity and potential trade-offs of using additional dimensions in indexing, concluding that thorough testing is essential for effective application.