Fastest way to do meta query when I don’t need the actual posts, and just need post_id?

Fastest way to do meta query when I don’t need the actual posts, and just need post_id?

error code: 523