Skip to content

Ability to skip Incremental Index during query using query context#1957

Merged
gianm merged 1 commit intoapache:masterfrom
metamx:skip-incremental-segment
Nov 24, 2015
Merged

Ability to skip Incremental Index during query using query context#1957
gianm merged 1 commit intoapache:masterfrom
metamx:skip-incremental-segment

Conversation

@nishantmonu51
Copy link
Copy Markdown
Member

  • add adds the ability to skip incremental index when querying results from realtime nodes.
  • default behaviour is to include incrementalIndex in queries.

@fjy
Copy link
Copy Markdown
Contributor

fjy commented Nov 12, 2015

can you explain the logic behind this PR?

@drcrallen
Copy link
Copy Markdown
Contributor

I'm guessing its because this context setting causes the query to only hit persisted segments, which should be faster. If you don't care about absolute-up-to-the-second data you can skip hitting the incremental index which might be heavily hit due to ingestion.

@nishantmonu51 can you get some performance metrics around this?

@nishantmonu51
Copy link
Copy Markdown
Member Author

@fjy, @drcrallen, yeah its correct, the idea behind this is to help with query performance when you don't want data upto the latest second and can tolerate delay upto the intermediatePersistPeriod,
the general idea on how it will help is -

@nishantmonu51
Copy link
Copy Markdown
Member Author

@drcrallen will look into getting some performance numbers.

@xvrl
Copy link
Copy Markdown
Member

xvrl commented Nov 12, 2015

@fjy tldr; it's the difference between real-time and real²time :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will fail with class cast exception if the value is a string instead of a boolean.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, it might be useful to get it once on top and reuse instead of getting for each sink.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we only support Strings for backwards compatibility, do we have to support strings for new properties ?

This PR adds adds the ability to skip incremental index when querying
results from realtime nodes. default behaviour is to include
incrementalIndex in queries.

review comment
@nishantmonu51 nishantmonu51 force-pushed the skip-incremental-segment branch from 0d15dae to 60f649d Compare November 18, 2015 19:00
@himanshug
Copy link
Copy Markdown
Contributor

can you document the new attribute?

@fjy
Copy link
Copy Markdown
Contributor

fjy commented Nov 18, 2015

@nishantmonu51 @xvrl I don't really understand the purpose of this PR? Is it so you guys can avoid querying the in memory component of Druid's realtime? Why not look into why the in-memory component is slow?

@gianm
Copy link
Copy Markdown
Contributor

gianm commented Nov 20, 2015

👍

@xvrl
Copy link
Copy Markdown
Member

xvrl commented Nov 24, 2015

👍 it's helpful to have to investigate performance problems. Probably should not need to be documented, since it's behavior is dependent on real-time ingestion implementation details. If it proves very useful, we can promote it.

@xvrl xvrl removed the Discuss label Nov 24, 2015
gianm added a commit that referenced this pull request Nov 24, 2015
Ability to skip Incremental Index during query using query context
@gianm gianm merged commit 13af260 into apache:master Nov 24, 2015
@nishantmonu51 nishantmonu51 mentioned this pull request Dec 1, 2015
@gianm gianm added this to the 0.8.3 milestone Dec 1, 2015
@gianm gianm mentioned this pull request Dec 4, 2015
seoeun25 pushed a commit to seoeun25/incubator-druid that referenced this pull request Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants