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

introduce [precomputedSelect] #2254

Merged
merged 2 commits into from
Dec 6, 2024
Merged

introduce [precomputedSelect] #2254

merged 2 commits into from
Dec 6, 2024

Conversation

touv
Copy link
Contributor

@touv touv commented Dec 6, 2024

pour avoir des enrichissements permettant de croiser un champ avec le résultat d'un pré-calul

avec un seul élément :

[use]
plugin = basics

[assign]
path = value
value = get('id')

[precomputedSelect]
name = nom_du_pre_calcul
filter = fix({id: `uid:/${self.value}`})
limit = 1

ou avec plusieurs valeurs

[use]
plugin = basics
plugin = analytics

[assign]
path = value
value = get('id')

[expand]
path = value

[expand/precomputedSelect]
name = nom_du_pre_calcul
filter = fix({source: self.value})

[expand/aggregate]


const total = await cursor.count();
if (total === 0) {
return feed.send({ total: 0 });
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure it's a good choice

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll see later...

@touv touv merged commit 18afdaf into master Dec 6, 2024
9 checks passed
@touv touv deleted the precomputed-pick-up branch December 6, 2024 17:19
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