Abp: GET Request Optimizations

Created on 10 Jul 2018  Â·  6Comments  Â·  Source: abpframework/abp

abp-framework enhancement

All 6 comments

You should add ReadUncommitted as the transaction level as to not lock tables instead of disabling the transaction.

Not sure why you're confused. In highly transact-able DBs you cant be waiting for gets, In our environment we could have data being loaded/updated behind the scenes while the users work. However, we also verify the data on updates using a version number. You need to think about these things If you don't want it to be default, make it configurable/attribute-able so I don't have to go thru and change it out myself later like currently.

Note: We do this on Querable/List pulls for displaying in grids etc., not GetByIds.

I looks like youre going down the path to have concurrency updates, so it should be fine to read uncommitted.
https://docs.microsoft.com/en-us/aspnet/mvc/overview/getting-started/getting-started-with-ef-using-mvc/handling-concurrency-with-the-entity-framework-in-an-asp-net-mvc-application

I would say use use this like we do, but Im sure not everyone can, and it is specific to SQL, uncommitted should be universal.
https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/sql/snapshot-isolation-in-sql-server

Hi @bbakermmc

Is "disabling transaction" better than "using a ReadUncommited transaction" for just reading data from database? I suppose @acjh also thought like that.

No because sql still issues it as read committed

Sent from my iPhone

On Jul 11, 2018, at 3:49 AM, Halil İbrahim Kalkan <[email protected]notifications@github.com> wrote:

Hi @bbakermmchttps://github.com/bbakermmc

Is "disabling transaction" better than "using a ReadUncommited transaction" for just reading data from database? I suppose @acjhhttps://github.com/acjh also thought like that.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/volosoft/abp/issues/355#issuecomment-404077627, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcsjRwWYJYmXJkq6oWDMZczaP5umhnN6ks5uFa4VgaJpZM4VJWbw.

I believe that reading commited data is better. ReadUncommited probably needed only for specific cases. In anyway, it will be easily configurable, don't worry.

Sure, Ill let you believe that ;)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SmallShrimp picture SmallShrimp  Â·  3Comments

zsanhong picture zsanhong  Â·  3Comments

leonkosak picture leonkosak  Â·  3Comments

hikalkan picture hikalkan  Â·  3Comments

hikalkan picture hikalkan  Â·  3Comments