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

perf(relation): improve has many relation by using not in when possible and available #1148

Merged
merged 4 commits into from
Sep 16, 2024

Conversation

Thenkei
Copy link
Contributor

@Thenkei Thenkei commented Jul 16, 2024

Definition of Done

General

  • Write an explicit title for the Pull Request, following Conventional Commits specification
  • Test manually the implemented changes
  • Validate the code quality (indentation, syntax, style, simplicity, readability)

Security

  • Consider the security impact of the changes made

) as ColumnSchema;

if (leafSchema.filterOperators.has('NotIn') && leaf.operator === 'NotEqual') {
// Possible optimization NotEqual
Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@Thenkei Thenkei force-pushed the perf/relation-not-in-optimization branch from 7860e81 to 1b57c2c Compare September 13, 2024 09:35
@Thenkei Thenkei marked this pull request as ready for review September 13, 2024 09:35
Copy link

codeclimate bot commented Sep 13, 2024

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.

Copy link
Contributor

@DayTF DayTF left a comment

Choose a reason for hiding this comment

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

@Thenkei Thenkei merged commit a15eefe into main Sep 16, 2024
22 checks passed
@Thenkei Thenkei deleted the perf/relation-not-in-optimization branch September 16, 2024 15:59
forest-bot added a commit that referenced this pull request Sep 16, 2024
## [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))
@forest-bot
Copy link
Member

🎉 This PR is included in version 1.11.9 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

forest-bot added a commit that referenced this pull request Sep 16, 2024
## [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))
forest-bot added a commit that referenced this pull request Sep 16, 2024
## [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))
@forest-bot
Copy link
Member

🎉 This PR is included in version 1.8.45 🎉

The release is available on example@1.8.45

Your semantic-release bot 📦🚀

forest-bot added a commit that referenced this pull request Sep 16, 2024
## [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))
forest-bot added a commit that referenced this pull request Sep 16, 2024
## [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))
@forest-bot
Copy link
Member

🎉 This PR is included in version 1.41.12 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

forest-bot added a commit that referenced this pull request Sep 16, 2024
## [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))
forest-bot added a commit that referenced this pull request Sep 16, 2024
## [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))
forest-bot added a commit that referenced this pull request Sep 16, 2024
## [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))
@forest-bot
Copy link
Member

🎉 This PR is included in version 1.47.2 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.1.25 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.3.31 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.3.85 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.0.96 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.2.11 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

forest-bot added a commit that referenced this pull request Sep 17, 2024
## [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))
@forest-bot
Copy link
Member

🎉 This PR is included in version 1.3.15 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

forest-bot added a commit that referenced this pull request Sep 17, 2024
## [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))
forest-bot added a commit that referenced this pull request Sep 17, 2024
## [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))
forest-bot added a commit that referenced this pull request Sep 17, 2024
# [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))
forest-bot added a commit that referenced this pull request Sep 17, 2024
# [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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants