I have a BIG Problem, I need to create a program that will loop 24x7 to check the database and it wouldn’t consume a lot of memory. My platform is vb6 or .net Any advise Please..
loop problems/memory problem
Collapse
X
-
Tags: None
-
Originally posted by ewankosayoI have a BIG Problem, I need to create a program that will loop 24x7 to check the database and it wouldn’t consume a lot of memory. My platform is vb6 or .net Any advise Please..
Why should it use a lot of memory? If your table contains a huge number of records, and you keep a recordset open, this may be the case. But you only need to open a connection to the database, and then run SQL queries through that. This takes much less RAM.Comment
-
-
-
Comment
-
Originally posted by ewankosayobut I need to check my database every single second.Comment
-
-
Hi,
What backend db are you using, and what do you need to check in the table?
If using Oracle/SQL Server/MySQL then, write trigger for each table for : "Insert".
Checking from Frontend, each table may consume lots of resources, Triggers will not consume much. Do the checking inside the trigger itself..
REgards
VeenaComment
-
-
for example every time that my process flag was changed into 2 then i need to change it to 3. i can't afford to lose a second because were in a fast phase processing.Comment
-
Originally posted by ewankosayofor example every time that my process flag was changed into 2 then i need to change it to 3. i can't afford to lose a second because were in a fast phase processing.Comment
-
Comment
Comment