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 -
sql = " SELECT isnull(userdatacomment,'NONE') as comment, Asset_Detail.Asset_serial_no,Asset_Detail.Asset_id, " &_
-
" Asset_Detail.Asset_barcode_no, " &_
-
" Asset_Detail.Asset_description, Asset_Type.Asset_type_description, " &_
-
" assettypesub.assettypesubdesc, " &_
-
" Asset_Detail.Asset_contract_no,Asset_Detail.Asset_Rental,Asset_Detail.Asset_type_id, " &_
-
" state.statedesc,Asset_Detail.Asset_purchase_date,Asset_Detail.Asset_PO_no, " &_
-
" isnull(Asset_Detail.Asset_purchase_price,0) Asset_purchase_price," &_
-
" Supplier_Detail.Supplier_Name, invoice.invoice_date,Invoice.Invoice_no, " &_
-
" Customer_User.User_Name,Customer_User.User_code,Cost_Centre.Cost_Centre_Code,Cost_Centre.Cost_Centre_Description, " &_
-
" Department.Department_Code, Department.Department_Desc " &_
-
-
" FROM Asset_Detail left JOIN user_data on userdataassetid = asset_detail.asset_id " &_
-
" inner join Contract_detail ON Asset_Detail.Asset_contract_no = Contract_detail.Contract_no " &_
-
" left JOIN Department ON Asset_Detail.Asset_Department_Id = Department.Department_Id " &_
-
" left JOIN Customer_User ON Customer_User.User_Id = Asset_Detail.Asset_User_Id " &_
-
" left JOIN ( select * from Cost_Centre where Cost_Centre_Active <> 0) Cost_Centre ON " &_
-
" Cost_Centre.Cost_Centre_ID = Asset_Detail.Asset_CostCentre_Id " &_
-
" LEFT JOIN Invoice ON Asset_Detail.Asset_invoice_id = Invoice.Invoice_id " &_
-
" left JOIN state ON asset_detail.asset_TO_stateID=state.stateid " &_
-
" LEFT JOIN Asset_Type ON Asset_Detail.Asset_type_id = Asset_Type.Asset_type_id " &_
-
" LEFT JOIN AssetTypesub on Asset_detail.asset_subtype=assettypesub.assetTypesubId " &_
-
" LEFT JOIN Asset_Category ON Asset_Category.Asset_category_id = Asset_Type.Asset_type_Category_id " &_
-
" LEFT JOIN Supplier_Detail ON Invoice.Invoice_supplier_id = Supplier_Detail.Supplier_id " &_
-
" WHERE Contract_detail.Contract_customer_id = " & Session(CUSTOMER_ID) & _
-
" 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 "
-
4 2090 Rabbit 12,516
Recognized Expert Moderator MVP
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.
Try to add some caching capabilities to your application. For a request to be cached, always use get method in the form.
Frinavale 9,735
Recognized Expert Moderator Expert
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
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.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 to develop complex apps in. It would seem if you
could create your own language in Lisp using macros that that would be
quite an advantage....
I realize that Python has operator overloading and OOP so I'm not sure.
|
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 saying that the design was not made using strict
dtd. This time I have taken care of using STRICT DTD.
Please Comment, I am a very much new commer with respect to you all.
|
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> ";
|
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
expect a much faster performance.
I submitted my search over two minutes ago. I just finished this
email to the list. The results have still not come back. I only
searched for:
SECURITY INVOKER
|
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 = "'" & NewData & "' is not an available AE Name " & vbCrLf &
vbCrLf
| |
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 sizes about 6-7k and a
small text description of the item. The Items tamble holds now about 2500
hundred records so that´s 60+ pages. The thing is that all the page when it
load is about 175K. Of those 83K are from images the rest is the text that...
|
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 I am doing is quering the db for
all the headers for a certain group and then going through
them to find all the parts of each post. I only want ones
that are complete. Meaning all segments for that one file
posted are there.
using System;
|
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 one-key-chord way to upload a single
file or a single site.
In Dreamweaver, you can hit "Control-Shift-U" to upload a single file to the
remote site you have configured. This is extremely handy when you're doing
quickie fixes and development, more...
|
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 my site.
Later on, I set classes in a CSS external file and used the background-image: command to fill those same tables with the same images.
So my question is: which is faster? I would think the CSS method. And how much faster is it? ...
|
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 consider XML and/
or .inc text file.
What is the best practice to load them once when user starts website
browsing and keep them until user leaves the site?
I considered Global.asa, but I know there must be one per application.
I may have 2 same...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |