Is it possible to add an object type (not subtype)?
In case you're wondering, I have a very large DB and am about to add 10,000 new objects to it. I'm interested in setting them off as a separate object type because (1) I'm using Lucene search and I want to be able to segregate them and (2) I'd like to design a custom main "entity" table for them.
Thanks very much.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Dracolyte@Dracolyte
Dracolyte - 0 likes
- Evan Winslow@ewinslow
Evan Winslow - 0 likes
- Dracolyte@Dracolyte
Dracolyte - 0 likes
- Evan Winslow@ewinslow
Evan Winslow - 0 likes
- Dracolyte@Dracolyte
Dracolyte - 0 likes
You must log in to post replies.Apologies. I believe I should have said I want to create a new Entity type, not object type.
Why is object subtype not sufficient?
If I use a subtype, then with Lucene I have the choice of either indexing it or not, whereas if I use a type, then I can index it separately. That is what I prefer.
More importantly, I have to do many bulk inserts and deletes -- 10K rows at a time. Elgg's default structure of metadata and metastrings simply cannot handle that. I need to use a more straightforward data model, with one table.
You're talking about creating a 5th entity type that has its own custom table to be joined with elgg_entities like objects, for example? Elgg does not support this. You're welcome to do whatever you like, ultimately, but I would try to figure out a way to do it the Elgg-y way or prepare to create a fork of Elgg.
I believe you're right. Thanks very much for the quick help.