https://blog.probooks.com/posts/effective-analytics-invoicing-performance/