Index: /main/waeup.kofa/trunk/src/waeup/kofa/hostels/hostel.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/hostels/hostel.py	(revision 15747)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/hostels/hostel.py	(revision 15748)
@@ -345,5 +345,12 @@
             if 'bed_id' not in cat.keys():
                 nothing_to_do = False
+                # replace original `updateIndex` method
+                def updateIndexReplacement(index):
+                    reindex_cat(cat)
+                cat._updateIndex = cat.updateIndex
+                cat.updateIndex = updateIndexReplacement
+                # setup catalog
                 cat[u'bed_id'] = FieldIndex(field_name=u'bed_id')
+                cat.updateIndex = cat._updateIndex  # undo changes
                 logger.info(
                     '%s: bed_id index added to beds_catalog.'
Index: /main/waeup.kofa/trunk/src/waeup/kofa/utils/helpers.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/utils/helpers.py	(revision 15747)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/utils/helpers.py	(revision 15748)
@@ -27,4 +27,5 @@
 import shutil
 import tempfile
+import transaction
 import grok
 from cStringIO import StringIO
@@ -956,7 +957,11 @@
     uids = get_catalog_docids(cat)
     print("Found %s entries..." % len(uids))
-    for docid in uids:
+    for n, docid in enumerate(uids):
         ob = uidutil.getObject(docid)
         cat.index_doc(docid, ob)
+        # indexes can become huge. commit changes every 5000th round to
+        # keep the memory footprint of catalogs `updateIndex` manageable
+        if not n % 5000:
+            transaction.commit()
     d2 = datetime.datetime.now()
     print("Finished. %s" % (d2 - d1))
