Hi there, I've configured a cluster for my users and data. the data module imports addresses from a backend system every night - delete all - reimport ...
http://documentation.magnolia-cms.com/technical-guide/clustering.html Now on some page views which uses the data module are really slow on production. On my development system all works fine - so i decided to reinstall all on production ... Export all databases copy files etc and use the latest centos and glassfish. but while exporting the cluster database i discovered that the clustered database is over 5 gigs in size ... omg ... the importer works fine - no double entries or so - so i'm really confused right now ... for import i use this: while(contactEntries.next()) { if(contacts == null) contacts = firm.createContent("contacts", ItemType.CONTENTNODE); String anrede = contactEntries.getString("Anrede"); if(anrede==null) anrede = ""; String titel = contactEntries.getString("Titel"); if(titel==null) titel = ""; else titel = " " + titel; String vorname = contactEntries.getString("Vorname"); String personenname = contactEntries.getString("Personenname"); NodeDataUtil.getOrCreate(contacts, new Integer(i).toString()).setValue(anrede+titel+" "+vorname+" "+personenname); i++; } contactEntries.close(); } firmList.save(); for deletition i ve overwritten private void deleteOldContent() { try { Context ctx = new SimpleContext(); HierarchyManager hierarchyManager = ctx.getHierarchyManager("data"); Collection<Content> firms = hierarchyManager.getContent("/firmlist/FirmList").getChildren("Firm"); int count = 0; for (Content firm : firms) { firm.delete(); count++; if(count % 100 == 0) hierarchyManager.save(); } hierarchyManager.save(); log.info(count+ " Firms deleted."); } catch (Exception e) { log.error(e.getMessage(),e); System.gc(); sendMail(new java.util.Date().toString(), "Magnolia FirmList-Import Error", importErrorEmail); } } Any ideas? Thank you ! Matthias -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=ca377bd2-b39a-4779-a096-9dfae2084a35 ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
