New table in custom extension , indexed ?

Author Message

Jean-Yves Zinsou

Friday 22 October 2010 1:33:24 am

Hi all,

i am not familiar with this problematic, i am planing to make a custom extension and create a new table as spotted un this article

http://share.ez.no/learn/ez-publish/an-introduction-to-developing-ez-publish-extensions/%28page%29/7

I would like to know if my rows in my new table will be indexed by some kind of black magic or not?

And if not how to make them indexed ?

Thanks for any tips !

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

Paul Borgermans

Friday 22 October 2010 2:01:32 am

You will have to create the black magic yourself.

Only custom datatypes have a function to be implemented (metaData()) that will be used by the indexing calls automatically (when objects are added/updated/deleted)

To index them, you will need to write your own cronjob or so.

Are you using eZ Find (2.3)? If so, there are other options: you can index this table separately from the content objects and use extra (custom) search parameters

hth

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Jean-Yves Zinsou

Friday 22 October 2010 6:44:24 am

Black magic, black magic,

I am going to summon the dark ezpublish lords right away .

Thanx Paul for your answer.

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

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 10:17:04
Script start
Timing: Jan 18 2025 10:17:04
Module start 'layout'
Timing: Jan 18 2025 10:17:04
Module start 'content'
Timing: Jan 18 2025 10:17:05
Module end 'content'
Timing: Jan 18 2025 10:17:05
Script end

Main resources:

Total runtime0.8146 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 588.0156152.6250
Module start 'layout' 0.00850.0043 740.640639.4531
Module start 'content' 0.01280.8002 780.0938538.8594
Module end 'content' 0.81300.0015 1,318.953112.1406
Script end 0.8146  1,331.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5331160.0003
Check MTime0.00180.2200160.0001
Mysql Total
Database connection0.00150.179610.0015
Mysqli_queries0.755292.7042570.0132
Looping result0.00050.0668550.0000
Template Total0.773595.020.3867
Template load0.00290.357020.0015
Template processing0.770694.596820.3853
Template load and register function0.00010.013610.0001
states
state_id_array0.00280.337810.0028
state_identifier_array0.00080.095320.0004
Override
Cache load0.00260.3140230.0001
Sytem overhead
Fetch class attribute can translate value0.00100.117020.0005
Fetch class attribute name0.00200.248950.0004
XML
Image XML parsing0.00120.149220.0006
class_abstraction
Instantiating content class attribute0.00000.001760.0000
General
dbfile0.00120.1442230.0001
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs