It depends on what is using the DB.
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Should DBA know to check theres no DB connections before performing a data update
Collapse
X
-
-
Why?Originally posted by minestrone View PostIt depends on what is using the DB.Knock first as I might be balancing my chakras.Comment
-
Comment
-
Sorry OP but I'm approaching 10 years as a DBA/developer, mostly direct for Oracle, and have never once had a scenario where people have had to log out for a 'data update'.
Occasionally some DDL or huge table level updates are scheduled for outside of business hours, but even then, leaving the occasional session connected should not be the end of the world.
Sounds like a flaw in the application locking or change processes rather than with the DBA.Comment
-
WHS - same here. Never had to get users to log out for a data update.Originally posted by Kanye View PostSorry OP but I'm approaching 10 years as a DBA/developer, mostly direct for Oracle, and have never once had a scenario where people have had to log out for a 'data update'.
Now I have had a few applications where this might have been an issue, so the application / DB schema accomodated this, by being able to pre-load the data gradually, but in an inactive state - and then made active when ready.
Sounds like the application architecture needs a rethink.Comment
-
If you are using ORM which mostly everyone does these days in writing java apps ( I would think .NET has eventually got there as well) and using third level caching which you should be then you have to drop the appication or else what you are updating might be written over by the application cache.Originally posted by centurian View PostSounds like the application architecture needs a rethink.
It is pretty standard tech and a pretty standard way of using it.
As I said it depends on the use of the DB but it is normal ( necessary )to drop the connections on the architectures I use.Last edited by minestrone; 6 January 2013, 17:57.Comment
-
Which is why ORM's are more pain then they are worth. The person who retrofitted one at current client co deserves to be shot.Originally posted by minestrone View PostIf you are using ORM which mostly everyone does these days in writing java apps ( I would think .NET has eventually got there as well) and using third level caching which you should be then you have to drop the appication or else what you are updating might be written over by the application cache.
It is pretty standard tech and a pretty standard way of using it.
As I said it depends on the use of the DB but it is normal ( necessary )to drop the connections on the architectures I use.merely at clientco for the entertainmentComment
-
ORMs are terribly misunderstood by most people that use them, fantastic at delivering clean code quickly written to do page sized data loading but I keep finding people writing batch jobs with it. Battering the shit: out of the DB for minutes on end to do something a stored proc could do in a second.Comment
-
Your architectures dont use optimistic locking then? Are you not using versioning on your rows? Which you usually should be in scalable multiuser systems.Originally posted by minestrone View PostIf you are using ORM which mostly everyone does these days in writing java apps ( I would think .NET has eventually got there as well) and using third level caching which you should be then you have to drop the appication or else what you are updating might be written over by the application cache.
It is pretty standard tech and a pretty standard way of using it.
As I said it depends on the use of the DB but it is normal ( necessary )to drop the connections on the architectures I use.
The DBA update would incr the version number. The cache would not be able to overwrite that later. You should handle optimistic locking version error in your app-reload the latest version and maybe try again. This is how I've used ORMs such as Hibernate in the past. It's a standard approach.
Bouncing the DB should be an absolute last resort due to needing to refill caches in the middle tier.Last edited by aussielong; 6 January 2013, 23:15.Comment
-
Blooming heck something from aussielong I can 100% agree withOriginally posted by aussielong View PostYour architectures dont use optimistic locking then? Are you not using versioning on your rows? Which you usually should be in scalable multiuser systems.
The DBA update would incr the version number. The cache would not be able to overwrite that later. You should handle optimistic locking version error in your app-reload the latest version and maybe try again. This is how I've used ORMs such as Hibernate in the past. It's a standard approach.
Bouncing the DB should be an absolute last resort due to needing to refill caches in the middle tier.
merely at clientco for the entertainmentComment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers

Comment