Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
RSS BotMB to Hacker NewsEnglish · 10 days ago

Paging Through a Parquet File in DuckDB: File_row_number or Offset?

rusty.today

external-link
message-square
0
link
fedilink
2
external-link

Paging Through a Parquet File in DuckDB: File_row_number or Offset?

rusty.today

RSS BotMB to Hacker NewsEnglish · 10 days ago
message-square
0
link
fedilink
Paging Through a Parquet File in DuckDB: file_row_number or OFFSET? — Rusty Conover
rusty.today
external-link
You have a large Parquet file and an API that has to return its contents, but responses have a size ceiling, so the caller pages through it. LIMIT/OFFSET is the obvious way to write that and it is the wrong one. I measured file_row_number against it: 2.53x faster on a file with 163 row groups. Speed is the boring half of the answer. OFFSET will also hand back the wrong rows without telling you.

Comments

alert-triangle
You must log in or # to comment.

Hacker News

hackernews

Subscribe from Remote Instance

You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !hackernews@lemmy.bestiver.se
lock
Community locked: only moderators can create posts. You can still comment on posts.

Posts from the RSS Feed of HackerNews.

The feed sometimes contains ads and posts that have been removed by the mod team at HN.

Source of the RSS Bot

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 341 users / day
  • 1.66K users / week
  • 3.69K users / month
  • 9.69K users / 6 months
  • 2 local subscribers
  • 5.29K subscribers
  • 58.6K Posts
  • 31.3K Comments
  • Modlog
  • mods:
  • patrick
  • RSS Bot
  • BE: 0.19.15
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org