Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have Created business logic in Database which is as bellows
1. There are lots students data in tables
2. Bases on their rank in respective courses I fetch students (Student near by 1 Lakh)
3. Loop through preferences and find in Steps find whether candidates fits any seats.Then Allocates the candidates in respective seat if possible.
4. This procedure when starts executing then it takes time more than 5 hours as it is likely to have recursive logic.
5. Now I want to have this logic should be maintained in C# Code where we can handle logic as well as when changes from client can easily managed .But in database we have to modify Procedure every time.
6. Also in C# Windows its not working as takes more than 5 hours.
7. Also when if any logic is failed then for tracing (Debugging) is very difficult as we are using SQL Server Express 2012 .
8. For this we want to move logic in C# Code where we can easily manage Business Logic easily.

What I have tried:

I made simple queries with indexes properly build after watching query execution plan
Even then procedure takes more time .I tried to debug procedure but failed as it hangs or gives run time exception .

Also i tried to maintain log table and print statement but even then its very difficult to find out issue as Store procedure have more steps and complex logic .
For this I want to move all logic in Coding so that we can debug and maintain logic as well .Also we can modify logic if there is change in business rule.
Posted
Updated 24-Mar-19 20:08pm

1 solution

Your question is beyond the scope of a quick answer forum. You are asking people to re-architect and design a system with an extremely small amount of information. What you are looking for would take hours of back and forth before someone can give you a solid answer (providing you find someone willing to do that for free as people pay lots of money for that kind of work).

My suggestion to you is to read up on n-tier architecture and then start to ask questions about that.

introduction to n tier architecture - Google Search[^]

What is N-Tier Architecture? Examples, Tutorials & More[^]

https://www.guru99.com/n-tier-architecture-system-concepts-tips.html[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900