Hi! I have 3 classes, lets call them X, Y and Z. They all use HiLo to generate IDs. Y and Z reference X. The problem is that I get the following SQL-statements when using NHProfiler:
Statement 1: INSERT INTO X VALUES(..) Statement 2: INSERT INTO Y VALUES(..) INSERT INTO Y VALUES(..) INSERT INTO Y VALUES(..) Statement 3: INSERT INTO Z VALUES(..) I understand that X needs to be inserted alone, but the other two statements I do not know why they are not batched together. To clarify this is what I want: Statement 1: INSERT INTO X VALUES(..) Statement 2: INSERT INTO Y VALUES(..) INSERT INTO Y VALUES(..) INSERT INTO Y VALUES(..) INSERT INTO Z VALUES(..) I'm using NHibernate 2.1 and I have set adonet.batch_size to 20. Is it a limitation of NHibernate that types are batched type by type? Or am I doing something wrong? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
