Skip to content

Conversation

@Micah-Kolide
Copy link
Contributor

This PR extends the optimized columns for all platforms. I've split up the optimized changes into multiple PRs to make it easier to validate the table generation methods. I've only added tables where I believe and tested the generate methods support the IN optimization.

I've confirmed that the columns can support these changes by querying the tables with an IN constraint on the optimized columns. I validated the expected results by comparing returned values from osquery 5.13.1 (before IN optimization existed), 5.14.1, and 5.14.1 containing these spec file changes.

With each query I included a NULL, '' (empty string), and some non-existent values in my IN constraint.

Tests were ran on macOS Sequoia: Version 15.2 Beta (24C5079e), Linux Ubuntu: 6.8.0-1018-gcp (Ubuntu 12.3.0-1ubuntu1~22.04), and Windows 11 Pro: 10.0.22631.

@Micah-Kolide Micah-Kolide requested review from a team as code owners December 11, 2024 18:14
description("Perform an http request and return stats about it.")
schema([
Column("url", TEXT, "The url for the request", required=True, index=True),
Column("url", TEXT, "The url for the request", required=True, index=True, optimized=True),
Copy link
Member

Choose a reason for hiding this comment

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

I see why user_agent isn't optimized. But it could be. 😆 (Eh, not sure it's worth it. Just... things I notice validating your PRs)

@directionless directionless merged commit 02a8654 into osquery:master Dec 16, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants