feat(problemset): optimize database query by selecting specific fields

This commit is contained in:
cfngc4594 2025-03-14 18:59:44 +08:00
parent cd50e73fc9
commit 740bc1e00b

View File

@ -31,6 +31,11 @@ export default async function ProblemsetPage() {
orderBy: {
id: "asc",
},
select: {
id: true,
title: true,
difficulty: true,
},
});
return (