Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Indexing of DataObjects


Go to End


3 Posts   1524 Views

Avatar
swaiba

Forum Moderator, 1899 Posts

2 June 2010 at 4:18am

Hi,

I am no professional DBA, but I am curious if there are any basic things I could do to future-proof a system that I expect several tables to grow massively on. I am aware of indexing tables based on keys - I wondered if silver stripe creates indexes in anyway? If so do these relate to the default sort or something else I can configure on the data objects?

Barry

Avatar
mark_s

Community Member, 78 Posts

3 June 2010 at 11:26pm

Hi.

When you define a DataObject derivative, you can define a static called $indexes which defines the indexes. When SilverStripe builds the database, it also creates these indexes. So yes, you can get performance out of large tables.

Mark

Avatar
swaiba

Forum Moderator, 1899 Posts

4 June 2010 at 2:30am

Thank you Mark