|
What exactly does Connection Lifetime=0 mean in a connection string?
Started by Quintin Par on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I suggest that using Connection LifeTime if you have not a connection....
When you use Connection LifeTime: It destroys pooled connections If the time your connection is opened for is larger than Connection LifeTime,connection is not usable.
|
|
How can I make a variable (object) available for the whole lifetime of the webservice?
Static variable seem to work but is there an other way to do it?
Started by Daok on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
A singleton.
In the case of a web service also be a good choice for stashing something needed for the lifetime of a service.
Exist for the lifetime of the App Domain that contains them.
|
|
Does a 5400rpm HDD have a longer life than 7200rpm?
I know that more RPMs means more heat but is there a significant difference between their lifetime?
Started by MicTech on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at superuser):
It would be obsolete before they got the results they will have a similar (or better) lifetime....
Hard drive years in order to estimate its lifetime.
No direct correlation to lifetime if the drive is of good quality
no there isn't.
|
Ask your Facebook Friends
|
I am not sure if the memory address of an object keeps beeing the same over its lifetime. Does it? Or does it change sometimes during the object's existence?
Started by HelloMoon on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Although I have.
If you mean self , then, yes, it stays intact over the lifetime of the object.
|
|
Let's say you have an 8GB solid-state hard drive, which has a limited number of writes by nature (I think). If you have swap space for your Ubuntu installation, will the lifetime of your solid state drive decrease because of the swap space? If so, would...
Started by Brian T Hannan on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
The drives.
In practice, it isn't that much of an issue.
In theory.
Would disabling the swap space increase the lifetime of the drive?
that is fairly easy to answer to the device's overall lifetime.
|
|
How do you control the lifetime of a message in a message queue? What is the default lifetime? I tried running message queues locally and I find that the messages disappear on a system restart. Doesn't this defeat the purpose of the message queue in building...
Started by kjayakum on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Remember also that those.
But their default is forever.
To control the lifetime of the message.
|
|
What lifetime can be expected of the typical hard disk? Or are there big differences between different types? And does it make a difference if it is used heavily instead of never being connected to system (for example serving as a backup medium)?
Started by Dimitri C. on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at superuser):
Here is great paper from Google about HDD lifetime
Failure Trends in a Large Disk Drive Population/disk_failures.pdf
What lifetime can be expected of the typical hard disk?
The correct answer to your question of "What lifetime can....
|
|
I'm new to NHibernate, and have seen some issues when closing sessions prematurely. I've solved this temporarily by reusing sessions instead of opening a session pr transaction. However, I was under the impression that opening sessions each time you need...
Started by Stian Karlsen on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
In a desktop app, I recommend that the user would like to perform, so... .
Archive/2009/05/07/tip-18-how-to-decide-on-a-lifetime-for-your-objectcontext.aspx
It should apply full control over the session lifetime and simplifies error handling.
|
|
If a variable is declared as static in a function's scope it is only initialized once and retains its value between function calls, we all know that but what exactly is its lifetime? When do its constructor and destructor get called?
void foo() { static...
Started by Motti on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The lifetime of function static variables begins the first time [0] the program flow encounters.
|
|
Should log classes open/close a log file stream on each write to the log file or should it keep the log file stream open throughout the application's lifetime until all logging is complete?
I'm asking in context of a desktop application. I have seen people...
Started by j0rd4n on
, 14 posts
by 14 people.
Answer Snippets (Read the full thread at stackoverflow):
If you have frequent read/writes it is more efficient to keep the file open for the lifetime the file open for the lifetime, because each time you open/close you might have a failure if the file.
|