-
Notifications
You must be signed in to change notification settings - Fork 8
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
perf(relation): improve has many relation by using not in when possible and available #1148
Conversation
) as ColumnSchema; | ||
|
||
if (leafSchema.filterOperators.has('NotIn') && leaf.operator === 'NotEqual') { | ||
// Possible optimization NotEqual |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically is not just NotEqual but I wanted to prove it on NotEqual.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I meant is that can also declare other optimisations with other NOT operators.
7860e81
to
1b57c2c
Compare
Code Climate has analyzed commit cbaf269 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (98% is the threshold). This pull request will bring the total coverage in the repository to 97.5%. View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚡
## [1.8.45](https://github.com/ForestAdmin/agent-nodejs/compare/example@1.8.44...example@1.8.45) (2024-09-16) ### Performance Improvements * **relation:** improve has many relation by using not in when possible and available ([#1148](#1148)) ([a15eefe](a15eefe))
🎉 This PR is included in version 1.11.9 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
## [1.41.12](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/agent@1.41.11...@forestadmin/agent@1.41.12) (2024-09-16) ### Bug Fixes * **datasource-sql:** support for paranoid tables with snake case timestamp fields ([#1170](#1170)) ([96b54f9](96b54f9)) ### Performance Improvements * **relation:** improve has many relation by using not in when possible and available ([#1148](#1148)) ([a15eefe](a15eefe)) ### Reverts * "fix(datasource-sql): handle timestamps of tables with underscored column names" ([#1169](#1169)) ([3b76e38](3b76e38))
## [1.47.2](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-customizer@1.47.1...@forestadmin/datasource-customizer@1.47.2) (2024-09-16) ### Bug Fixes * **datasource-sql:** support for paranoid tables with snake case timestamp fields ([#1170](#1170)) ([96b54f9](96b54f9)) ### Performance Improvements * **relation:** improve has many relation by using not in when possible and available ([#1148](#1148)) ([a15eefe](a15eefe)) ### Reverts * "fix(datasource-sql): handle timestamps of tables with underscored column names" ([#1169](#1169)) ([3b76e38](3b76e38))
🎉 This PR is included in version 1.8.45 🎉 The release is available on Your semantic-release bot 📦🚀 |
## [1.1.25](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-dummy@1.1.24...@forestadmin/datasource-dummy@1.1.25) (2024-09-16) ### Bug Fixes * **datasource-sql:** support for paranoid tables with snake case timestamp fields ([#1170](#1170)) ([96b54f9](96b54f9)) ### Performance Improvements * **relation:** improve has many relation by using not in when possible and available ([#1148](#1148)) ([a15eefe](a15eefe)) ### Reverts * "fix(datasource-sql): handle timestamps of tables with underscored column names" ([#1169](#1169)) ([3b76e38](3b76e38))
## [1.3.31](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-replica@1.3.30...@forestadmin/datasource-replica@1.3.31) (2024-09-16) ### Performance Improvements * **relation:** improve has many relation by using not in when possible and available ([#1148](#1148)) ([a15eefe](a15eefe))
🎉 This PR is included in version 1.41.12 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
## [1.3.85](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/plugin-aws-s3@1.3.84...@forestadmin/plugin-aws-s3@1.3.85) (2024-09-16) ### Bug Fixes * **datasource-sql:** support for paranoid tables with snake case timestamp fields ([#1170](#1170)) ([96b54f9](96b54f9)) ### Performance Improvements * **relation:** improve has many relation by using not in when possible and available ([#1148](#1148)) ([a15eefe](a15eefe)) ### Reverts * "fix(datasource-sql): handle timestamps of tables with underscored column names" ([#1169](#1169)) ([3b76e38](3b76e38))
## [1.0.96](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/plugin-export-advanced@1.0.95...@forestadmin/plugin-export-advanced@1.0.96) (2024-09-16) ### Bug Fixes * **datasource-sql:** support for paranoid tables with snake case timestamp fields ([#1170](#1170)) ([96b54f9](96b54f9)) ### Performance Improvements * **relation:** improve has many relation by using not in when possible and available ([#1148](#1148)) ([a15eefe](a15eefe)) ### Reverts * "fix(datasource-sql): handle timestamps of tables with underscored column names" ([#1169](#1169)) ([3b76e38](3b76e38))
## [1.2.11](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/plugin-flattener@1.2.10...@forestadmin/plugin-flattener@1.2.11) (2024-09-16) ### Bug Fixes * **datasource-sql:** support for paranoid tables with snake case timestamp fields ([#1170](#1170)) ([96b54f9](96b54f9)) ### Performance Improvements * **relation:** improve has many relation by using not in when possible and available ([#1148](#1148)) ([a15eefe](a15eefe)) ### Reverts * "fix(datasource-sql): handle timestamps of tables with underscored column names" ([#1169](#1169)) ([3b76e38](3b76e38))
🎉 This PR is included in version 1.47.2 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.1.25 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.3.31 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.3.85 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.0.96 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.2.11 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
## [1.7.15](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-mongoose@1.7.14...@forestadmin/datasource-mongoose@1.7.15) (2024-09-17) ### Bug Fixes * **datasource-sql:** support for paranoid tables with snake case timestamp fields ([#1170](#1170)) ([96b54f9](96b54f9)) ### Features * add separator in action forms ([#1167](#1167)) ([7d61527](7d61527)) ### Performance Improvements * **relation:** improve has many relation by using not in when possible and available ([#1148](#1148)) ([a15eefe](a15eefe)) ### Reverts * "fix(datasource-sql): handle timestamps of tables with underscored column names" ([#1169](#1169)) ([3b76e38](3b76e38))
🎉 This PR is included in version 1.3.15 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
## [1.9.3](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-sequelize@1.9.2...@forestadmin/datasource-sequelize@1.9.3) (2024-09-17) ### Bug Fixes * **datasource-sql:** support for paranoid tables with snake case timestamp fields ([#1170](#1170)) ([96b54f9](96b54f9)) ### Features * add separator in action forms ([#1167](#1167)) ([7d61527](7d61527)) ### Performance Improvements * **relation:** improve has many relation by using not in when possible and available ([#1148](#1148)) ([a15eefe](a15eefe)) ### Reverts * "fix(datasource-sql): handle timestamps of tables with underscored column names" ([#1169](#1169)) ([3b76e38](3b76e38))
## [1.14.19](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-sql@1.14.18...@forestadmin/datasource-sql@1.14.19) (2024-09-17) ### Features * add separator in action forms ([#1167](#1167)) ([7d61527](7d61527)) ### Performance Improvements * **relation:** improve has many relation by using not in when possible and available ([#1148](#1148)) ([a15eefe](a15eefe))
# [1.35.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-toolkit@1.34.5...@forestadmin/datasource-toolkit@1.35.0) (2024-09-17) ### Bug Fixes * **datasource-sql:** support for paranoid tables with snake case timestamp fields ([#1170](#1170)) ([96b54f9](96b54f9)) ### Features * add separator in action forms ([#1167](#1167)) ([7d61527](7d61527)) ### Performance Improvements * **relation:** improve has many relation by using not in when possible and available ([#1148](#1148)) ([a15eefe](a15eefe)) ### Reverts * "fix(datasource-sql): handle timestamps of tables with underscored column names" ([#1169](#1169)) ([3b76e38](3b76e38))
# [1.28.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/forestadmin-client@1.27.8...@forestadmin/forestadmin-client@1.28.0) (2024-09-17) ### Bug Fixes * **datasource-sql:** support for paranoid tables with snake case timestamp fields ([#1170](#1170)) ([96b54f9](96b54f9)) ### Features * add separator in action forms ([#1167](#1167)) ([7d61527](7d61527)) ### Performance Improvements * **relation:** improve has many relation by using not in when possible and available ([#1148](#1148)) ([a15eefe](a15eefe)) ### Reverts * "fix(datasource-sql): handle timestamps of tables with underscored column names" ([#1169](#1169)) ([3b76e38](3b76e38))
Definition of Done
General
Security