You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only truly use getAllProjects() when needing all projects. Otherwise create a Project "blindly" just by name and then validate it exists with a single read call that can be the same as the read calls in the constructor.
This might save precious I/O resources if having a lot of projects on the disk.
Hier ist mir aufgefallen, dass deine getProjectForName Funktion ja ein neues Project erstellt, wäre es hier nicht sinnvoller die Logik von dem delete aus der Project Entity rauszunehmen und direkt in den Service einzubauen?
Und jetzt gerade holst du erst alle Projekte und checkst ob das eine existiert, da wäre es auf Dauer vielleicht auch performanter spezifisch nach dem einen Ordner zu suchen ob er existiert, da könnte man ja ein doesProjectExist in den Project Service einbauen.
Only truly use
getAllProjects()
when needing all projects. Otherwise create a Project "blindly" just by name and then validate it exists with a single read call that can be the same as the read calls in the constructor.This might save precious I/O resources if having a lot of projects on the disk.
Originally posted by @gutentag2012 in #15 (comment)
The text was updated successfully, but these errors were encountered: