Index: WAeUP_SRP/base/skins/waeup_student/admitStudents.py
===================================================================
--- WAeUP_SRP/base/skins/waeup_student/admitStudents.py	(revision 3342)
+++ WAeUP_SRP/base/skins/waeup_student/admitStudents.py	(revision 3349)
@@ -44,22 +44,33 @@
 admitted = 0
 cocount = 0
-commit_after = 20
+old_commit_count = -1
+commit_after = 40
 d = {'status': 'created'}
 reg_nos = [brain.reg_no for brain in brains]
+with_timing = True
 for reg_no in reg_nos:
     count += 1
-    if admitted and not admitted % commit_after:
+    must_commit = (admitted != old_commit_count) and (not admitted % commit_after)
+    if must_commit:
+        old_commit_count = admitted
         context.waeup_tool.doCommit()
         logger.info("Committing %s transactions, total %s" % (commit_after,count))
         cocount += 1
-        #if cocount > 1:
-        #    break
+        if cocount > 2:
+            break
     brain = aq_applicants(Eq('reg_no',reg_no))[0]
     #logger.info("start creating  objects of student %s" % (brain.reg_no))
-    sid = d['student_id'] = context.waeup_tool.admitOneStudent(brain,entry_session,pin_password)
+    sid = d['student_id'] = context.waeup_tool.admitOneStudent(brain,
+                                                               entry_session,
+                                                               pin_password,
+                                                               with_timing = with_timing)
+        
     if sid is not None:
         d['reg_no'] = reg_no
         context.applicants_catalog.modifyRecord(**d)
         logger.info("created objects of student %s with id %s" % (reg_no,sid))
+        if with_timing:
+            data = context.waeup_tool.get_timing_data()
+            logger.info("timing %(i_time)6.2f/%(a_time)6.2f" % data['total'])
         admitted += 1
     else:
