Clustering Relational Data: A Transactional Approach