Script for indexing large amounts of data in small servers