[nhusers] Consumer Producer architecture Could not initialize proxy - no Session

2018-11-29 Thread Gökhan Abatay
I try to implement Consumer(Multiple Thread), Producer(Single Thread that is main one) architecture; Producer thread owns it' NH session and retrieves data and if it' fetch enough to process(limited by parameter like 500 record) send to Consumer thread (consumer owns another session) to

Re: [nhusers] Consumer Producer architecture Could not initialize proxy - no Session

2018-11-29 Thread Gökhan Abatay
Hi Oskar Berggren, Thank you for quick response, actually I change my perspective after posing this message now I have the same idea with you. I change my flow producer thread just select unique id and passes to worker consumer threads. Then consumer threads just selects what they need to

[nhusers] Linq to Sql in criteria with multiple 2 dimensional variables

2018-11-29 Thread Gökhan Abatay
Hi, How can I write linq to sql in criteria with multiple 2 dimensional variables. As output sql need to be; SELECT * FROM TABLE WHERE (COLUMN_1,COLUMN_2) IN ((x,Y),(Z,k),(M,L)) -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from

Re: [nhusers] Consumer Producer architecture Could not initialize proxy - no Session

2018-11-29 Thread Oskar Berggren
I looks to me like you are accessing a bunch of interfaces that are not necessarily the official way to work with NHibernate. The ISession provides the interface to reattach objects. Personally I've always found Evict/Attach messy, to be honest. You mention that you need very good performance.