Re: SQL REPLACE STATEMENT - CONSOLIDATION
From: Alvaro G. Vicario (kAlvaroNOSPAMTHANKS_at_terra.es)
Date: 10/06/04
- Next message: Nikolai Chuvakhin: "Re: [OT] max_connections in MySQL"
- Previous message: j-marvin: "Re: in_array"
- In reply to: Craig Keightley: "SQL REPLACE STATEMENT - CONSOLIDATION"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 6 Oct 2004 22:10:46 +0200
*** Craig Keightley escribió/wrote (Wed, 6 Oct 2004 12:15:47 +0100):
> Can these lines of sql statements be consolidated into one sql statement
> (possibly using reg exps??)
You're going to kill your database server, which is the typical bottleneck
in a dynamic web site. My suggestion:
1) Write a PHP function to cleanup text
2) Get data from DB
3) Clean data with your PHP function
4) Put data back into DB
-- -+ Álvaro G. Vicario - Burgos, Spain +- http://www.demogracia.com (la web de humor barnizada para la intemperie) ++ Las dudas informáticas recibidas por correo irán directas a la papelera -+ I'm not a free help desk, please don't e-mail me your questions --
- Next message: Nikolai Chuvakhin: "Re: [OT] max_connections in MySQL"
- Previous message: j-marvin: "Re: in_array"
- In reply to: Craig Keightley: "SQL REPLACE STATEMENT - CONSOLIDATION"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|