GetIDs  collection method (usefull for fast dumping)