Best of ELKMay 2024

  1. 1
    Article
    Avatar of hnHacker News·2y

    Making a Postgres query 1,000 times faster

    The author shares their journey of optimizing a Postgres query to make it 1,000 times faster. They discovered that the query was taking longer and longer each time it was executed due to processing all rows in the table and the use of a filter instead of an index condition. By using row constructor comparisons, they were able to significantly improve the query performance.

  2. 2
    Article
    Avatar of bytebytegoByteByteGo·2y

    EP112: What is a deadlock?

    A deadlock occurs when transactions are waiting for each other to release locks on resources. It can be prevented through resource ordering, timeouts, and the Banker's Algorithm. Database management systems have algorithms for detecting deadlocks and selecting victims.

  3. 3
    Article
    Avatar of gcgitconnected·2y

    Python and LLM for Stock Market Analysis Part IV — ElasticSearch for Stock Symbol/Ticker accuracy

    This post discusses the use of ElasticSearch for obtaining accurate stock symbols/tickers in stock market analysis. It explains the limitations of using LLM/NLP models alone and introduces ElasticSearch as an alternative. It also provides a step-by-step guide for setting up ElasticSearch and indexing stock data, as well as integrating it with Yahoo Finance API for symbol lookup. The post highlights the benefits of using ElasticSearch's fuzzy search feature and addresses potential issues with symbol identification.