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

Join multiple sql tables #115

Open
laigor opened this issue Oct 24, 2024 · 2 comments
Open

Join multiple sql tables #115

laigor opened this issue Oct 24, 2024 · 2 comments

Comments

@laigor
Copy link

laigor commented Oct 24, 2024

Please tell me how to get source parameters inside the plugin? I want to supplement with data from other tables by making SQL queries inside pre_event.

@nMessage
Copy link

Try writing a view? eg for postgresql

CREATE VIEW meilisearch_view AS
SELECT
    users.id_key,
    other.foo,
FROM
    users
LEFT JOIN
    other ON users.id_key = other.user_id;

@laigor
Copy link
Author

laigor commented Nov 4, 2024

If I use views in mysql, database changes are not tracked.

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

No branches or pull requests

2 participants