Laravel Search on 4M Records with Redis, Protobuf and Bloom Filters

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.พ. 2025
  • In this tutorial, I benchmark the search performance of three different approaches in a Laravel application:
    ✅ Redis
    ✅ Protocol Buffers (Protobuf)
    ✅ Bloom Filters
    I tested these methods against a dataset of 4 million records and measured the search time for each. The results reveal some fascinating insights into which approach offers the best speed and efficiency.
    If you're working with large datasets and optimizing search performance, this benchmark will give you a clear idea of what works best.
    What search optimization techniques have you used in your projects? Let’s discuss in the comments!

ความคิดเห็น • 2

  • @dailycomputerscience
    @dailycomputerscience  11 วันที่ผ่านมา

    I am not getting any data while searching in Redis because there is a key prefix defined in the Redis trait, which is "protobuf." As a result, the key becomes "protobuf_unwanted_domain." However, I am already passing "protobuf_unwanted_domain," so the key is being converted to "protobuf_protobuf_unwanted_domain," which prevents us from retrieving any data. That's the reason for not getting data using Redis. Sorry for the confusion.

  • @__sanjeev019
    @__sanjeev019 11 วันที่ผ่านมา

    source code