pub async fn count_dataset_data(
db: &DatabaseConnection,
dataset_id: Uuid,
) -> Result<usize, DatabaseError>Expand description
Count the number of data items linked to a dataset without loading them.
Uses SELECT COUNT(*) on the dataset_data junction table for efficiency.