Advice needed: Best way of implementing a scenario in SQL database

Concluído Postado há 7 anos Pago na entrega
Concluído Pago na entrega

Dear expert,

This small project is looking for a suggestion for the best way of implementing a scenario in database.

I have a asp.net C# website. I want to trace the movement of the user from page to page and store it in my SQL database. Currently I am creating a session variable which will be appending the name of the each page, every time a user browse through my site. Refer the following.

Say I have 5 pages.

1) mypage_1

2) mypage_2

3) mypage_3

4) mypage_4

5) mypage_5

If the user browse in the following sequence, 1, 3, 4, 2, 3, 5, my session variable looks like the following.

String usermovement = "user_donald->mypage_1->mypage_3->mypage_4->mypage_2->mypage_3->mypage_5

Once the session is expiring, this session variable is stored SQL database as a single string of text. Later when I want to trace the flow of user visited page, I read the database entry and split the sting based on the "->"

Even though it works, it is not the efficient way of storage in sql because it is hard for querying something of following sort.

select all users who moved from 'mypage_3 to mypage_4'.

With the current implemetation, I have to read the whole database with 100,000+ users string, parse it, order it and analyse it, which take a really long time.

Given this situation, what is the best way of achieving it? what is the right architecture to implement?

Thanks in advance.

Programação de Banco de Dados

ID do Projeto: #12630798

Sobre o projeto

11 propostas Projeto remoto Ativo em há 7 anos

Concedido a:

sumon355

Hello, As an database expert, i am very much interested to help you for your required scenario. I have a better plan which is definitely the standard way of doing this type of thing. Looking forward to have a positive Mais

$40 USD em 2 dias
(29 Comentários)
6.1

11 freelancers estão ofertando em média $28 nesse trabalho

Grunty

Hello, I can envision two methods worth considering, each one better suited to one of two diverging goals -- easy storage, as opposed to easy retrieval (query). If interested, I look forward to your awarding the proj Mais

$25 USD em 1 dia
(5 Comentários)
5.0
point5nyble

Hello, I have been working with a MNC based company since last ~ 6 years, as an IT BI DWH Professional. The project is a BI DWH project which covers 3 layers of BI (ETL, Data warehouse & Reporting) and helped me Mais

$35 USD em 1 dia
(23 Comentários)
4.7
shahzaib121

Hi Dear I have a lot of experience in DataBases ,Data Warehous,DB2 , Teradata etc . I am DataBases + Warehouse certified from Oracle,postgresSQL,SQL SERVER , Access. I have done many work in Requirements analysis , Mais

$30 USD in 3 dias
(12 Comentários)
4.2
vw7590795vw

Please review my profile. I have 7.1 years experience in SQL Server. Please let me know when we will start.

$10 USD in 5 dias
(1 Comentário)
2.4
adudez96

The answer I propose is simple in theory. It should however involve a bit of an overhaul of your session storing in the database, and hence I may need a couple details regarding your database. I have studied algori Mais

$24 USD em 1 dia
(0 Comentários)
0.0
erndsglts

i have 6 years experience on Qt ,c++ and SQL, create database class using singleton design pattern.

$25 USD em 1 dia
(0 Comentários)
0.0
iNoorShaik

I have great experience when comes to SQL programming. I have an idea on it, we can discuss over call/chat..

$10 USD em 1 dia
(0 Comentários)
0.0
themrah

I ll give you a database table structure and i ll describe that how you can insert datas and query for datas

$25 USD em 1 dia
(0 Comentários)
0.0