Add convention plugin to configure vector properties as not auto-loaded
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start by reading the IConventionSetPlugin entry point described in the issue and compare it with the linked SQL Server convention changes. Determine how pgvector properties should be marked non-auto-loaded, then verify that the convention applies correctly to entity loading; the issue does not name specific files or tests.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When loading entities, EF currently always loads all their properties; in the case of vector properties, this isn't needed in the vast majority of cases (as embeddings are used for similarity search in the database but rarely need to be fetched back), and the non-trivial size of embeddings make this a performance problem. For EF 11, we are mitigating this in https://github.com/dotnet/efcore/issues/37277.
We should apply this for pgvector as well. This means introducing an IConventionSetPlugin that would add a convention to mark pgvector properties as non-auto-loaded, similar to the SQL Server convention. I'm happy to submit a PR for this.
@ankane in general regarding versioning... I see that the latest version of Pgvector.EntityFrameworkCore depends on EF 9.0. With 10.0 out and 9.0 going out of support this year, we should probably (a) release a version that targets EF 10.0, and then (b) prepare (and possibly release) another prelease version (incrementing the major or minor version) to target EF 11 (which should be out in November). We should also probably take a look at the lower-level pgvector/Npgsql versions as well.
Let me know what you think, am happy to work on all this as needed.
- Lingua principale
- C#
- Stelle
- 299
- Fork
- 29
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Issue simili
-
[C#]:主页联网更新的提示投稿横幅指向错误Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
PCL-Community/PCL-CE#3652 ·
I maintainer di solito rispondono entro 1 giorno
-
bug effort:S P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
nightscout/nocturne#2012 ·
I maintainer di solito rispondono entro 1 giorno
-
area:frontend bug FE P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
klasolsson81/jobbliggaren#2010 ·
I maintainer di solito rispondono entro 1 giorno
-
[aw] Upgrade availableApertaagentic-workflows untriaged
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
area: homeblaze type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
RicoSuter/Namotion.Interceptor#630 ·
I maintainer di solito rispondono entro 1 giorno