473,385 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How could i make my Website faster

syedshaffee
Hey people,

i need help I am created a website that is a information system That gives information to my clients. Can some please suggest me to speed up the search process b'coz at some point i'm getting "SQL Server timeout expired "

while getting a the data on a temp table The data is visible when refreshed so Please help on the same Please

This is the query i am using

Expand|Select|Wrap|Line Numbers
  1.         sql = " SELECT isnull(userdatacomment,'NONE') as comment, Asset_Detail.Asset_serial_no,Asset_Detail.Asset_id, " &_
  2.               " Asset_Detail.Asset_barcode_no, " &_
  3.               " Asset_Detail.Asset_description, Asset_Type.Asset_type_description, " &_
  4.               " assettypesub.assettypesubdesc, " &_
  5.               " Asset_Detail.Asset_contract_no,Asset_Detail.Asset_Rental,Asset_Detail.Asset_type_id, " &_
  6.               " state.statedesc,Asset_Detail.Asset_purchase_date,Asset_Detail.Asset_PO_no, " &_
  7.               " isnull(Asset_Detail.Asset_purchase_price,0) Asset_purchase_price," &_
  8.               " Supplier_Detail.Supplier_Name, invoice.invoice_date,Invoice.Invoice_no, " &_
  9.               " Customer_User.User_Name,Customer_User.User_code,Cost_Centre.Cost_Centre_Code,Cost_Centre.Cost_Centre_Description, " &_
  10.               " Department.Department_Code, Department.Department_Desc " &_
  11.  
  12.               " FROM Asset_Detail left JOIN user_data on userdataassetid = asset_detail.asset_id " &_
  13.               " inner join Contract_detail ON Asset_Detail.Asset_contract_no = Contract_detail.Contract_no " &_
  14.               " left JOIN Department ON Asset_Detail.Asset_Department_Id = Department.Department_Id " &_
  15.               " left JOIN Customer_User ON Customer_User.User_Id = Asset_Detail.Asset_User_Id " &_
  16.               " left JOIN ( select * from Cost_Centre where Cost_Centre_Active <> 0) Cost_Centre ON " &_
  17.               " Cost_Centre.Cost_Centre_ID = Asset_Detail.Asset_CostCentre_Id " &_
  18.               " LEFT JOIN Invoice ON Asset_Detail.Asset_invoice_id = Invoice.Invoice_id " &_
  19.               " left JOIN state ON asset_detail.asset_TO_stateID=state.stateid " &_
  20.               " LEFT JOIN Asset_Type ON Asset_Detail.Asset_type_id = Asset_Type.Asset_type_id " &_
  21.               " LEFT JOIN AssetTypesub on Asset_detail.asset_subtype=assettypesub.assetTypesubId " &_
  22.               " LEFT JOIN Asset_Category ON Asset_Category.Asset_category_id = Asset_Type.Asset_type_Category_id " &_
  23.               " LEFT JOIN Supplier_Detail ON Invoice.Invoice_supplier_id = Supplier_Detail.Supplier_id " &_
  24.               " WHERE Contract_detail.Contract_customer_id = " & Session(CUSTOMER_ID) & _
  25.               " AND ISNULL(Asset_Detail.Asset_Active,0) <> 0 AND Asset_Type.Asset_type_id IN(131,135,132,95,99,66,101,102,145,310)AND Client_Intent_Date IS NULL AND Client_comments IS NULL " 
  26.  
Jul 11 '12 #1
4 2081
Rabbit
12,516 Expert Mod 8TB
That depends on the table structure and the query you're using. It doesn't sound like it has to do with the website itself.
Jul 12 '12 #2
Anas Mosaad
185 128KB
Try to add some caching capabilities to your application. For a request to be cached, always use get method in the form.
Jan 5 '13 #3
Frinavale
9,735 Expert Mod 8TB
You could consider using a store procedure if you aren't already...

Stored procedures are precompiled so they don't need to be compiled during execution.

-Frinny
Jan 8 '13 #4
HI
This Is most frequent problem that we all are facing today's scenario.You I Would like to tell you that just refresh your all sets and get it all connection in right position so that you can improve yous website speed.
Thanks.
Jan 28 '13 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

37
by: seberino | last post by:
I've been reading the beloved Paul Graham's "Hackers and Painters". He claims he developed a web app at light speed using Lisp and lots of macros. It got me curious if Lisp is inherently faster...
4
by: Acharya J. Ganesh | last post by:
|| Shree Ganesha || Dear Friends; Please check the website chpindia.com and please comment wether it is done alright this time at least. Last time I got lot of feedback for ashapurafoods.com...
9
by: windandwaves | last post by:
Hi Folk My question is: echo all the time vs echo at the end - what is faster Let me explain I used to write pages like this: echo "<head> ";
83
by: D. Dante Lorenso | last post by:
Trying to use the 'search' in the docs section of PostgreSQL.org is extremely SLOW. Considering this is a website for a database and databases are supposed to be good for indexing content, I'd...
1
by: Danny Dy | last post by:
Hi To All, I always write My VBA code in SQL(see Example). Private Sub cbxAEName_NotInList(NewData As String, Response As Integer) Dim stSQL as String Dim strMsg As String strMsg = "'" &...
1
by: TCB | last post by:
I am developing a website using .NET 2.0 (classified style website) it displays a series of records per page (8, using a datagrid with paging) each record displays a thumbnail of an image that...
10
by: Extremest | last post by:
I know there are ways to make this a lot faster. Any newsreader does this in seconds. I don't know how they do it and I am very new to c#. If anyone knows a faster way please let me know. All...
4
by: | last post by:
Using VS.NET I am wondering what methods developers use to deploy ASP.NET website content to a remote server, either using FTP or network file copy. Ideally there would be a one-button or...
3
by: vozzek | last post by:
Hi everyone, quick question: When I first started my website three months ago, I was a total rookie. I used a lot of <img> tags to create borders around things and to dress up different tables on...
5
by: vunet | last post by:
I have some properties data to be loaded for the site use, such as: website url, admin email, mailing component to use, etc. for my ASP website. They will be stored in a database, or I also...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.