T
trullock
Hi,
Can anyone suggest the best way to go about the following...
I'm tracking clicks (mouse down x,y coordinates) on a web page by
using some javascript to create an XHR which sends the coordinates to
a recording service, such as:
/Record.ashx?X=123&Y=456
In record.ashx, I'm wondering about the best way to record all these
values to the database.
In the end, when selecting the data from the database, all i need to
know is X, Y and a count. so for example:
123,456,10 would mean there were 10 clicks at 123,456.
I'm figuring that since this service is going to be under quite high
load, that making an sqlconnection inside record.ashx for every
request would be a bad idea?
I'm wondering if i should make a static array in the record servce,
which then performs a dump at regular intervals.
I'm also trying to learn LINQ and i'm wondering if there some trickery
i can employ to make this as lightweight as possible.
As an asside, do you think its best to try and maintain and X,Y,Count
table from the outset, or to just dump clicks into a raw table, which
gets periodically parsed into the grouped table?
Thanks
Trull
Can anyone suggest the best way to go about the following...
I'm tracking clicks (mouse down x,y coordinates) on a web page by
using some javascript to create an XHR which sends the coordinates to
a recording service, such as:
/Record.ashx?X=123&Y=456
In record.ashx, I'm wondering about the best way to record all these
values to the database.
In the end, when selecting the data from the database, all i need to
know is X, Y and a count. so for example:
123,456,10 would mean there were 10 clicks at 123,456.
I'm figuring that since this service is going to be under quite high
load, that making an sqlconnection inside record.ashx for every
request would be a bad idea?
I'm wondering if i should make a static array in the record servce,
which then performs a dump at regular intervals.
I'm also trying to learn LINQ and i'm wondering if there some trickery
i can employ to make this as lightweight as possible.
As an asside, do you think its best to try and maintain and X,Y,Count
table from the outset, or to just dump clicks into a raw table, which
gets periodically parsed into the grouped table?
Thanks
Trull