What happens if get_links returns millions of links?

Suppose one were to do a get_links query that will return an unreasonable number of results, maybe millions.

What would happen currently?

  1. Timeout?
  2. Crash?
  3. Error message like “too many results”?
  4. Undefined / unknown?

Have/do we run load tests to test this behavior?