Forums / Developer / New table in custom extension , indexed ?

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

eZ debug

Timing: Jan 18 2025 03:10:08
Script start
Timing: Jan 18 2025 03:10:08
Module start 'content'
Timing: Jan 18 2025 03:10:09
Module end 'content'
Timing: Jan 18 2025 03:10:09
Script end

Main resources:

Total runtime0.7462 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 587.7344180.8359
Module start 'content' 0.00650.7309 768.5703543.9375
Module end 'content' 0.73740.0087 1,312.507842.0859
Script end 0.7461  1,354.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4764140.0003
Check MTime0.00160.2110140.0001
Mysql Total
Database connection0.00170.223010.0017
Mysqli_queries0.696793.3584580.0120
Looping result0.00060.0743560.0000
Template Total0.715295.820.3576
Template load0.00230.307020.0011
Template processing0.712995.526020.3564
Template load and register function0.00010.014510.0001
states
state_id_array0.00160.212310.0016
state_identifier_array0.00130.167520.0006
Override
Cache load0.00190.2555230.0001
Sytem overhead
Fetch class attribute can translate value0.00080.108520.0004
Fetch class attribute name0.00120.164450.0002
XML
Image XML parsing0.00090.115920.0004
class_abstraction
Instantiating content class attribute0.00000.001860.0000
General
dbfile0.00340.4492250.0001
String conversion0.00000.000530.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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