Hello
I am developing a system for user tracking. In this I am tracking all the
visitors that came to my website. i developed this using a HTTPModule and
storing the data in a SQL Server database. Everything worked fine till my
website gets good traffic.
When website is getting good traffic, this method is slowing down the entire
application. So I am planning to use flat files instead of SQL Server
database. My doubts are
1 - What is a flat file and how can I connect to it from my ASP.NET
application
2 - If multiple users are browsing website at same time, how can I save
data's to file, because that may be in use.
3 - Is XML files are normal flat files ?
Please help me on this issue.
Sincerly
Navaneeth 9 1866
On 30 , 10:06, Navaneeth.K.N
<Navaneeth....@discussions.microsoft.comwrote:
Hello
I am developing a system for user tracking. In this I am tracking all the
visitors that came to my website. i developed this using a HTTPModule and
storing the data in a SQL Server database. Everything worked fine till my
website gets good traffic.
When website is getting good traffic, this method is slowing down the entire
application. So I am planning to use flat files instead of SQL Server
database. My doubts are
1 - What is a flat file and how can I connect to it from my ASP.NET
application
2 - If multiple users are browsing website at same time, how can I save
data's to file, because that may be in use.
3 - Is XML files are normal flat files ?
Please help me on this issue.
Sincerly
Navaneeth
I have a doubt whether saving data to a file on the hard drive is
faster then saving data in the database. Not to mention the speed of
processing these data.
Regards,
Mykola http://marss.co.ua
I suggest you stick with a database. Flat files will almost certainly not
give you additional speed or scalability.
Perhaps you could use some sort of a queue to save up log records and only
write to the database every so often.
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider http://SteveOrr.net
"Navaneeth.K.N" <Na***********@discussions.microsoft.comwrote in message
news:B9**********************************@microsof t.com...
Hello
I am developing a system for user tracking. In this I am tracking all the
visitors that came to my website. i developed this using a HTTPModule and
storing the data in a SQL Server database. Everything worked fine till my
website gets good traffic.
When website is getting good traffic, this method is slowing down the
entire
application. So I am planning to use flat files instead of SQL Server
database. My doubts are
1 - What is a flat file and how can I connect to it from my ASP.NET
application
2 - If multiple users are browsing website at same time, how can I save
data's to file, because that may be in use.
3 - Is XML files are normal flat files ?
Please help me on this issue.
Sincerly
Navaneeth
Yes, the OP could look into MSMQ, however what levels of traffic are we
talking here? If it isn't extremely heavy I can't understand why SQL would
be causing a bottleneck. I'd look into what is causing the delay before
looking for an alternative solution.
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <St***@Orr.netwrote in
message news:B7**********************************@microsof t.com...
>I suggest you stick with a database. Flat files will almost certainly not give you additional speed or scalability.
Perhaps you could use some sort of a queue to save up log records and only
write to the database every so often.
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider http://SteveOrr.net
"Navaneeth.K.N" <Na***********@discussions.microsoft.comwrote in message
news:B9**********************************@microsof t.com...
>Hello
I am developing a system for user tracking. In this I am tracking all the visitors that came to my website. i developed this using a HTTPModule and storing the data in a SQL Server database. Everything worked fine till my website gets good traffic.
When website is getting good traffic, this method is slowing down the entire application. So I am planning to use flat files instead of SQL Server database. My doubts are
1 - What is a flat file and how can I connect to it from my ASP.NET application 2 - If multiple users are browsing website at same time, how can I save data's to file, because that may be in use. 3 - Is XML files are normal flat files ?
Please help me on this issue.
Sincerly Navaneeth
"Aidy" <ai**@xxnoemailxx.comwrote in message
news:8t******************************@bt.com...
If it isn't extremely heavy I can't understand why SQL would be causing a
bottleneck.
Could be any number of reasons: poor design, no primary key / index,
inefficient use of ADO.NET, not closing connections etc...
--
Mark Rae
ASP.NET MVP http://www.markrae.net
Could be any number of reasons: poor design, no primary key / index,
inefficient use of ADO.NET, not closing connections etc...
That's what I meant, I don't see that it can be SQL Server's fault but
something to do with the design/coding.
BTW, why would not having an index *harm* insert performance? :p
A flat file likely won't help you - ultimately your database does nothing
more than write data to a file. XML is not he right approach either.
You need to either change your approach to tracking data, using perhaps a
hidden iframe in you pages that impacts a second web server instead of your
primary - or look to scale out for load by adding web servers to create a
farm.
Ultimately, a fix is a design decision as your problem could be in the
module rather than he fact that your talking to a database, you could try to
spawn your write activities off to asynchronous threads and see if it
reduces your problems or simply load your data into the application object
and every 1000 requests or so write it to the DB.
Regards
John Timney (MVP) http://www.johntimney.com http://www.johntimney.com/blog
"Navaneeth.K.N" <Na***********@discussions.microsoft.comwrote in message
news:B9**********************************@microsof t.com...
Hello
I am developing a system for user tracking. In this I am tracking all the
visitors that came to my website. i developed this using a HTTPModule and
storing the data in a SQL Server database. Everything worked fine till my
website gets good traffic.
When website is getting good traffic, this method is slowing down the
entire
application. So I am planning to use flat files instead of SQL Server
database. My doubts are
1 - What is a flat file and how can I connect to it from my ASP.NET
application
2 - If multiple users are browsing website at same time, how can I save
data's to file, because that may be in use.
3 - Is XML files are normal flat files ?
Please help me on this issue.
Sincerly
Navaneeth
"Aidy" <ai**@xxnoemailxx.comwrote in message
news:lN*********************@bt.com...
BTW, why would not having an index *harm* insert performance? :p
:-)
--
Mark Rae
ASP.NET MVP http://www.markrae.net
Hello,
Using Application variables looks like a good solution to me. But what will
be the performance issues where Application variable grows ? And I think I
will loose unsaved data if any server crash happened
Performance clearly depends on how much data you stick in the app object
before you archive it off. You'll need to load test whatever your doing.
You always run the risk of losing data in any application crash before its
written to disk/database. What you need to work out is how many records are
you prepared to lose and make sure your write events minimise the impact.
So if you can only lose 10 records then dont wait until 100 to write to the
database.
Regards
John Timney (MVP) http://www.johntimney.com http://www.johntimney.com/blog
"Navaneeth.K.N" <Na*********@discussions.microsoft.comwrote in message
news:C2**********************************@microsof t.com...
Hello,
Using Application variables looks like a good solution to me. But what
will
be the performance issues where Application variable grows ? And I think I
will loose unsaved data if any server crash happened
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: hakhan |
last post by:
Hello all,
How can I convert unstructured flat files into structured XML? Are
there any scientific articles and tools that handles this subject?
Bye,
hakhan
|
by: Pierre Maricq |
last post by:
Hi,
I am using Win2000 and Access2000.
I need to build build a macro or write a VBA in Access that would screen all
files contained in a directory on my C drive (files are structrured DAT...
|
by: eddieb7 |
last post by:
Hi,
I am new to visual Studio 2005 C++ and am looking for some directions
on where best to start.
I come from a mainly Delphi background and looking to switch to VS 2005
C++ or C#.
I am...
|
by: new |
last post by:
I have data for each week in a single table. I need to export this data to
a separate flat file for each week.
Any ideas?
DB2 SQL Query export to flat files as a function of data on each record
|
by: anuanusha29 |
last post by:
Hi,
I am kinda new to programming and am in the process of implementing an application which is expected to parse/read data from flat files and display errors to the user about missing/invalid...
|
by: dave32079 |
last post by:
I am moving data from Oracle to MS SQL 2000.
I have been given the Oracle table structures and about 130 CVS files to populate these structures, 1 file per table. I have converted the table...
|
by: Stylus Studio |
last post by:
Dear Comp.Text.XML Community,
Attend a webinar event on how to modernize your EDI infrastructure and
exploit XML technologies.
Topic: Exploiting EDI and Flat Files in an XML World
Date &...
|
by: stephen |
last post by:
I had to use use ssis 2005 in a short project recently & had little
time to work it out. I was importing a whole bunch of flat files into
SQL Server tables with many derived columns and...
|
by: Tim |
last post by:
Hi Folks,
I'm used to a UNLOAD command that allows me to dump to a named flat
file the results of any SELECT statement. Hence one can build a single
SQL file which contains multiple SQL...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
| |