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

addQuestion (n+1 consultas) #4

Open
mperez01 opened this issue Feb 26, 2018 · 0 comments
Open

addQuestion (n+1 consultas) #4

mperez01 opened this issue Feb 26, 2018 · 0 comments

Comments

@mperez01
Copy link
Owner

addQuestion incurre en el problema de las n+1 consultas. Si, por ejemplo, se inserta una pregunta con cinco opciones posibles, se realizaría una inserción en la tabla questions y cinco inserciones en la tabla answer. Es mejor realizar dos inserciones: una en la tabla questions, y otra en la tabla answer con las cinco respuestas a la vez.

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

1 participant