15,895,462 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Gokhan CETIN (Top 3 by date)
Gokhan CETIN
17-Jun-15 5:30am
View
I think I can not explain my problem :) My problem is not database performance. Simply; I want to create schedule job for x date on future which in some customer data.
Classic solution which i told is that;
example;
-Table Name: ScheduleWorker
-Columns: ID, Query, timeInterval,Action,IsActive
1.Create a windows service
2.Create a Timer for each ScheduleWorker Row
3.Set TimeInterval to Timer
4.Create Tick event for execute Query
5.Execute action for Query Results
Query could be Storedprocedure or text script...
If I create simple schedule worker, It always selecting data on database for each timer event fire. This solution could be use long timeIntervals. For example; work one time on a day(exp:02:00 am) for sending message for say to happy birthday which customer birth on this day.
Everything is ok for above senario.
Now I will try to explain my problem with new senario..
I have a new customer and customer signed new contract on today at 01:00pm. So I want to send welcome message after 5 day + 2 hour + 1 min from signed date(I know this sample was a little extreme :D). So if I use classic solution fro send message to my customer, I have to search database each minute for find this customer(where signdate = DATEADD(minute,-122,DATEADD(day,-5,GETDATE())))
So I dont want to this. I'm trying to learn that; does anyone using diffrent methods for executing this senario.
Actually best solution is that; add new row into Task Table When customer signed on contract. then always check just one table. But now; I have a current big CRM application and I cannot implement that insert codes on each action methods..
I'm sorry my english :) I tried to explain my problem :) I know it is very complicated model. I just try to find new ideas, and doing brain storming.
thanks again.
Gokhan CETIN
16-Jun-15 11:19am
View
Yes it will be performance problem if I do simple solution(searching on database tables). I'm trying to find best way instead of search database. For example; mapping event with criterias when its created.
Gokhan CETIN
29-May-13 4:22am
View
Yes You are right. This is not a good idea but our application is currently using. If I manage to all sql connection, we have to change all current code blocks. So I'm tring to find simple method for to do this. I thought that; If I take thread info in base class, I can manage all classes connections by using parent Thread classes connecton.
I will resource another ways.. :)
Thanks