Storing Incoming events in Zotonic

20 views
Skip to first unread message

Behrad Zari

unread,
May 13, 2013, 6:31:29 AM5/13/13
to zotoni...@googlegroups.com
mod_survey has two methods of adding new models:
1) Questions: simply add new fields to the rsc form, add pivot columns, mostly behave like resources!
2) Answers: add custom tables, with custom access routins, it is not a resource!

When (and by which considerations) should we choose the second method? is it related to volume of to-be-stored data? 

and Whats the best approach of storing incoming system events in Zotonic?
They are triggered by a service api call, and there may be lots of events. Events can link to other zotonic resources, 2 fields of them are being searched.

Behrad Zari

unread,
May 14, 2013, 2:56:57 PM5/14/13
to zotoni...@googlegroups.com
Anybody!? @Marc !?

Andreas Stenius

unread,
May 15, 2013, 4:12:20 AM5/15/13
to Zotonic users
I'm anybody, but without any mod_survey experience..

As for incoming events.. I think you'd be best off with a custom model (and db table) for that. Slightly more work, but less overhead once implemented ;)


2013/5/14 Behrad Zari <beh...@gmail.com>
Anybody!? @Marc !?
--
 
---
You received this message because you are subscribed to the Google Groups "Zotonic users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zotonic-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

JRad

unread,
May 20, 2013, 12:37:29 PM5/20/13
to zotoni...@googlegroups.com
I went the custom model way!


--
 
---
You received this message because you are subscribed to a topic in the Google Groups "Zotonic users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/zotonic-users/cJ4kXWWd-_Q/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to zotonic-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages