Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Conversation

@martyav
Copy link
Contributor

@martyav martyav commented Oct 29, 2020

Part of a series of pull requests, placing queries from the TA reports in the repo.

Some of the column names may be outdated, as some of the reports are quite old.

Others in the series:
#145, #155, #163, #165,
#168, #169, #170, #172,
#173 , #174, #175, #177,
#178, #182, #183, #190,
#191, #192, #195, #196
#198, #202, #203, #204
#205, #206, #207, #208
#209, #214, #215, #218
#229, #230, #231

@martyav martyav mentioned this pull request Oct 30, 2020
Copy link
Contributor

@tali-ash tali-ash left a comment

Choose a reason for hiding this comment

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

Can we use Has instead of contains?
Has operator is more efficient.

It jsut depends if has can answer the scenario or only contains as they are a bit different:
Has beats contains—To avoid searching substrings within words unnecessarily, use the has operator instead of contains. Learn about string operators: https://docs.microsoft.com/en-us/azure/data-explorer/kusto/query/datatypes-string-operators

@martyav
Copy link
Contributor Author

martyav commented Nov 4, 2020

I updated several instances of "contains" to "has" to optimize the queries

@tali-ash tali-ash merged commit 3240881 into microsoft:master Nov 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants