nextcloud / text

📑 Collaborative document editing using Markdown
GNU Affero General Public License v3.0
528 stars 85 forks source link

perf: Use getFirstNodeById and pass userId for our internal helper to avoid fetching mountpoints #5933

Closed juliushaertl closed 1 week ago

juliushaertl commented 1 week ago

If we don't care which node we get by id we can use the optimized/cached getFirstNodeById instead. In addition I noticed we can skip getting mounts for a given file id to determine the user if we pass it upfront to our internal helper to get the file with the highest permission.