Option to use joins instead of multiple calls for relations.

オープン
#491 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, nodejs, postgresql
領域
backend, database

調査の方向性

このissueでは、ファイル、テスト、エントリーポイント、受け入れ基準が指定されていません。まず relation includes と PostgreSQL クエリが現在どのように扱われているかを確認し、その後、join 構文、モデルレベルの動作、複数データソースの制約、実装完了と見なすために必要なテストを明確にしてください。

索引モデルが issue の本文から書いたものです。

説明

feature

Suggestion

An option to use joins instead of multiple calls for relations would be useful for performance reasons and would also not effect multi datasources setups by default.

Use Cases

We are using a lot of DB calls with nested relations and each of those relations are fetched using extra DB calls which could be avoided. I understand the reasoning behind not using joins but I believe there should at least be an option to include relations through joins when required.

Examples

The syntax could be something like this -

"include": [
{
"relation": "child",
"join": "true"
}
],

or this could be defined at the model level in the relation decorator.

Acceptance criteria

TBD - will be filled by the team.

主要言語
JavaScript
スター
118
フォーク
184
平均マージ
1日 22時間
マージ済み PR(30日)
5

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

loopbackio/loopback-connector-postgresql のほかの issue

loopbackio/loopback-connector-postgresql の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。