Not necessarily sure wither it counts as 'timing out', but when using the API to get post counts, if it doesn't fetch it within 1.5 seconds, it returns 1000000. Here's an example: http://danbooru.donmai.us/counts/posts.json?tags=touhou+-rating:s
Even for non-upgraded members, the database timeout duration is 3 seconds. Is this intentional or I'm not reading it right?