473,503 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

help needed - insert to oracle is sooo slow :-(

Hi everyone :)

I have made a form to get values and insert them to a database.

I have
1) A file conn.php that does the initial connections
2) The form file form.php
3) Action file action.php which gets values from form.php to do
insert/delete/update.

I am 'including' conn.php in action.php since I need to connect to make
an INSERT. However a simple INSERT takes a whole lot of time to
execute. Often runs upto more than 2-3 minutes.

Is there a faster and less complicated way to do it?

Suggestions appreciated

have a gud one!
Benny

Jul 17 '05 #1
2 6014
cr*********@yahoo.com wrote:
Hi everyone :)
Hi

I have made a form to get values and insert them to a database.

I have
1) A file conn.php that does the initial connections
2) The form file form.php
3) Action file action.php which gets values from form.php to do
insert/delete/update.
fine so far.

I am 'including' conn.php in action.php since I need to connect to make
an INSERT. However a simple INSERT takes a whole lot of time to
execute. Often runs upto more than 2-3 minutes.


Well, in situations like this, the first thing to check is: Does the
SQL-statement take so long, or is it something else?
So, instead of letting your action.php execute the SELECT/INSERT/UPDATE,
just print it before you execute it, then stop the script (exit).

Then copy the SQL-statement, and paste it into SQL+ or whatever that Oracle
interface is named these days.

If you can execute the query very fast directly, you know that you have to
look futher in the action.php script, or in the setup.
Chances are that your insert is very slow because the database is huge and
needs to do a lot of indexing and such.
If that is the case, contact the builder and ask for help.

If that is NOT the case, come back here, and show us more code. (Preferably
the relevant parts in action.php)

Regards,
Erwin Moller

PS: Maybe this is relevant, I am not sure because I am no Oracleguru. But in
Postgresql it makes a huge difference in speed if you connect directly with
UNIX-sockets instead of TCP/IP. Maybe Oracle has similar features?
Jul 17 '05 #2
cr*********@yahoo.com wrote:
Hi everyone :)

I have made a form to get values and insert them to a database.

I have
1) A file conn.php that does the initial connections
2) The form file form.php
3) Action file action.php which gets values from form.php to do
insert/delete/update.

I am 'including' conn.php in action.php since I need to connect to make
an INSERT. However a simple INSERT takes a whole lot of time to
execute. Often runs upto more than 2-3 minutes.

Is there a faster and less complicated way to do it?

Suggestions appreciated

have a gud one!
Benny


After you check out the timing using Erwin Moller's suggestion I
believe you will find Oracle is very fast.

If you want precise execution times check out the Oracle manuals
for SQLPlus for getting time stamps before and after your query
executes so that you can easily calculate the actual execution time.

Based on how long it is taking your application to do the insert
I suspect that your problem lies in connecting to your database.

HTH

Jerry
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3472
by: duikboot | last post by:
Hi all, I'm trying to export a view tables from a Oracle database to a Mysql database. I create insert statements (they look alright), but it all goes wrong when I try to execute them in Mysql,...
0
482
by: Preston Landers | last post by:
Hello all. I am trying to write a query that "just" switches some data around so it is shown in a slightly different format. I am already able to do what I want in Oracle 8i, but I am having...
9
2983
by: AnandaSim | last post by:
Hi All, I've had Access 97, 2000 connections to the corporate Oracle database for a few years now - but seldom use it. When I did use it years ago, performance was not fast but the features were...
14
1686
by: tristant | last post by:
Hi All, Our client has just decided to migrate from SQLServer2k to Oracle 9i on AIX. We are considering what development tool / language as the application/ front end platform. We almost...
2
4209
by: egoldthwait | last post by:
I need to convert a 17mb access 2000 db to Oracle and house it in a Citrix farm. The issue: we have never converted an Access Db to Oracle but can probably use Oracle's Workbench to assist with...
2
4707
by: clinttoris | last post by:
Hello, If someone could help me it would be appreciated as I am not having much luck. I'm struggling with my asp code and have some questions relating to asp and oracle database. First...
46
13044
by: dunleav1 | last post by:
I have a process that does inserts that runs 50% slower that Oracle and Mssql. Queries normally take 50% slower than normal. DB2, Oracle, Mssql all are configured on same os, same disk array...
4
13651
by: Volks | last post by:
Hi, It takes 4 minutes to insert 40 000 records on a SQL Server and 40 sec on an other SQL Server. The slower run on windows 2000 terminal server and the faster on windows 2000. The slower ...
9
8638
by: dan | last post by:
within a loop i am building a sql insert statement to run against my (programatically created) mdb. it works but it seems unreasonably SLOW! Sorry, dont have the code here but the jist is very...
0
7204
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
7091
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...
0
7342
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...
0
5586
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5018
isladogs
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...
0
4680
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...
0
3171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
741
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
391
bsmnconsultancy
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...

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.