Thinking Elixir Podcast cover image

Thinking Elixir Podcast

166: Filtering, ordering and pagination via Flop

Aug 29, 2023
Mathias Polligkeit created the flop library to simplify filtering, sorting, and pagination in Ecto queries. He also created flop_phoenix package with heex components. The hosts discuss Elixir docs, OTP26 bug, and introduce DNS cluster library. LS version 0.10.0 is released with new features. Dagger.io now supports Elixir. Matthias Polishkite worked on a library for cursor-based pagination. Flop library simplifies filtering, ordering, and pagination in Ecto queries. Topics include challenges of pagination, key set pagination, performance of page-based pagination, filtering in Flop, and sortable fields.
50:22

Podcast summary created with Snipd AI

Quick takeaways

  • Flop is an Elixir library that simplifies filtering, ordering, and pagination in Ecto queries.
  • Flop allows developers to easily apply filters to Ecto queries by defining filterable fields on schemas and supporting various filter operators.

Deep dives

Flop: A powerful Elixir library for filtering, ordering, and pagination

Flop is an Elixir library designed to easily apply filtering, ordering, and pagination to ecto queries. It provides a convenient way to handle complex queries across multiple projects, saving developers from having to reimplement the same functionality. Flop allows you to define sortable and filterable fields on your ecto schemas, and provides validation and query building based on these fields. It supports both page-based and cursor-based pagination, offering flexibility based on the needs of your application. Additionally, Flop Phoenix provides Phoenix components for pagination, filtering, and ordering, making it easy to integrate with Phoenix LiveView. With its customizable features and easy-to-use API, Flop simplifies the process of filtering, ordering, and pagination in Elixir and Phoenix projects.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode