I forgot
tx.Commit();
at the end.
2009/5/14 Flominator flomina...@gmx.net:
Thanks for your support.
Tried to evict the Measurand within the transaction = exception on
disposal
The other solution would compile, since it didn't recognize typeof
(ActiveRecord). I then tried it with
All entities that NH persists,
are put into this cache.
Does that mean that NH caches all my 18 million objects after they
were created and saved via ARMediator?
Is there a way to remove objects from the cache after they were
created and saved?
Could I make created and saved objects in a
About 1st-level-cache:
Each session has one (except for stateless sessions that don't exist
currently in AR). When code executes using the same session scope, it
shares one session and therefore one 1st-level-cache. All entities
that NH persists, are put into this cache.
Now, if you load an
Hi Markus,
sorry for writing such a crap last time: I'm currently only reading
data from some file and write it into the database. So I meant, that
I'm currently not reading data from the db.
1. Is there any way to stop NHibernate from opening too many
sessions?
2. What about batching more
Hi Flo
answers inline
2009/5/6 Flominator flomina...@gmx.net:
1. Is there any way to stop NHibernate from opening too many
sessions?
AR by default opens a NH session per operation. NH opens a db
connection per session, but disconnects and reconnects it per
operation.
If you use a
Hi Markus,
I'm currently only reading data.
1. I have one TransactionScope for every row of data, which means 30
measurands (one for each channel). The method that opens and disposes
the TransactionScope gets the measurands and an enumerator containing
my channels. It iterates over the channels
Hi Flo
2009/5/4 Flominator flomina...@gmx.net
1. I have one TransactionScope for every row of data, which means 30
measurands (one for each channel). The method that opens and disposes
the TransactionScope gets the measurands and an enumerator containing
my channels. It iterates over the
Hi Flo
1. Do you have a single session scope spanning the read and save operations?
If there is no shared 1st level cache, NH assumes it has to update the
entity.
2. Are you using IDENTITY fields?
-Markus
2009/4/29 Flominator flomina...@gmx.net
Hi Markus,
thanks for your reply. I will try
Hi there,
I use AR to store measurands which are in channels which are in a
measurement:
Part of Measurement.cs:
[HasMany(typeof(Channel), Table = Channels, ColumnKey =
measurementid, Lazy=true, Cascade =
ManyRelationCascadeEnum.AllDeleteOrphan)]
private IListChannel Channels
Part of
Flominator,A collection that large shouldn't be a collection
On Tue, Apr 21, 2009 at 10:42 AM, Flominator flomina...@gmx.net wrote:
Hi there,
I use AR to store measurands which are in channels which are in a
measurement:
Part of Measurement.cs:
[HasMany(typeof(Channel), Table =
What should it be then?
On Apr 21, 9:47 am, Ayende Rahien aye...@ayende.com wrote:
Flominator,A collection that large shouldn't be a collection
On Tue, Apr 21, 2009 at 10:42 AM, Flominator flomina.@gmx.net wrote:
--~--~-~--~~~---~--~~
You received this
Remove the collection, make the association one directional
On Tue, Apr 21, 2009 at 11:05 AM, Flominator flomina...@gmx.net wrote:
What should it be then?
On Apr 21, 9:47 am, Ayende Rahien aye...@ayende.com wrote:
Flominator,A collection that large shouldn't be a collection
On Tue, Apr
Isn't this solution one directional?
On Apr 21, 10:10 am, Ayende Rahien aye...@ayende.com wrote:
Remove the collection, make the association one directional
On Tue, Apr 21, 2009 at 11:05 AM, Flominator flomina..@gmx.net wrote:
What should it be then?
On Apr 21, 9:47 am, Ayende
Not if you have a collection of them.Remove the HasMany, basically
On Tue, Apr 21, 2009 at 11:13 AM, Flominator flomina...@gmx.net wrote:
Isn't this solution one directional?
On Apr 21, 10:10 am, Ayende Rahien aye...@ayende.com wrote:
Remove the collection, make the association one
What do I have left after removing HasMany?
Is there any documentation on this?
On Apr 21, 10:18 am, Ayende Rahien aye...@ayende.com wrote:
Not if you have a collection of them.Remove the HasMany, basically
On Tue, Apr 21, 2009 at 11:13 AM, Flominator flomina..@gmx.net wrote:
Isn't
Hi Flo,
if I understood the problem correctly, Measurand is a value type without a
reference to the Channel entity it belongs to. I set value type into quotes
because I don't believe that they qualify for a value type. I rather think
it should be an entity in the channel aggregate.
Anyway,
16 matches
Mail list logo