Data Import

Author Message

Rob Clews

Tuesday 04 November 2003 6:38:03 am

Hi,

I wish to import data from a previous database we have, however the data structure is not that obvious to do this quickly. What would be the best way to do this or is there a document showing the id mappings?

Cheers
Rob Clews

Willie Seabrook

Tuesday 11 November 2003 9:09:31 pm

I have imported data into ez from a legacy mysql database. It is a difficult thing to do:

1. Because the data model is complex and unintuitive but mostly because of
2. There is pretty much no documentation on the datamodel and how to pull accross your old data.

I suggest you look at the upgrade code provided with the ez distribution (i think) for pulling users and articles across from ez 2.2 and then modify it to simply pull data from your old database. I would not recommend *at all* modifying the database directly.

I will also point out that you need to go and get a debugger if your going to work with the ezpublish in this depth. Spending $500 or even $2000 on Zend will save you money in terms of labour by being able to see much faster how everything is set up in EZ.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:27:11
Script start
Timing: Jan 18 2025 22:27:11
Module start 'layout'
Timing: Jan 18 2025 22:27:11
Module start 'content'
Timing: Jan 18 2025 22:27:11
Module end 'content'
Timing: Jan 18 2025 22:27:11
Script end

Main resources:

Total runtime0.0277 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.0234152.6250
Module start 'layout' 0.00700.0048 741.648439.4453
Module start 'content' 0.01180.0133 781.093889.2109
Module end 'content' 0.02510.0025 870.304730.3047
Script end 0.0276  900.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003111.0082140.0002
Check MTime0.00114.1426140.0001
Mysql Total
Database connection0.00072.634410.0007
Mysqli_queries0.004717.130430.0016
Looping result0.00000.079210.0000
Template Total0.00165.910.0016
Template load0.00103.468110.0010
Template processing0.00072.414110.0007
Override
Cache load0.00062.175810.0006
General
dbfile0.003412.385680.0004
String conversion0.00000.035340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs