Storing events and adding indexes for numeric values