Skip to content

ksqlDB: limit in count messages  #989

Open
@ybyzek

Description

@ybyzek

wrt https://kafka-tutorials.confluent.io/how-to-count-messages-on-a-kafka-topic/ksql.html

by default, ksqlDB emits table results every 2 seconds (based on default commit.interval.ms)

Maybe a little extra explanation would be helpful. While Without this, ksqlDB will continue to write any changes in the count to the screen as new messages arrive is totally true, it’s also not guaranteed that the first row will contain the complete count of existing records, if the topic is large

Someone "followed this tutorial to count records in a topic, and was surprised that the result was much lower than expected."

Thanks for reporting the issue @mikebin

cc: @rmoff

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingksqlDBksqlDB related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions