Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploads are now deduplicated on store_as_name. #2415

Merged
merged 1 commit into from
Feb 3, 2023
Merged

Conversation

scudette
Copy link
Contributor

@scudette scudette commented Feb 3, 2023

It is often convenient in VQL to repeat the same finding from the same file on multiple rows. But previously each invocation of the upload() function would cause the file to be uploaded again

Although it is possible to work around this using the cache() function it is more useful to only upload the same file once but provide a reference to the upload on each row.

This PR deduplicates the uploads by store_as_name.

It is often convenient in VQL to repeat the same finding from the same
file on multiple rows. But previously each invocation of the upload()
function would cause the file to be uploaded again

Although it is possible to work around this using the cache() function
it is more useful to only upload the same file once but provide a
reference to the upload on each row.

This PR deduplicates the uploads by store_as_name.
@scudette scudette merged commit 7874346 into master Feb 3, 2023
@scudette scudette deleted the deduplicate branch February 3, 2023 03:04
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.

1 participant