Hi,
I made a portal for my school where people could post there cv. It's online since wednesday. At this moment there are already about 100 cv's online. With there cv people can post if they are available as well. They post it in this way:
MoAM
MoPM
TuAM
TuPM
WeAM
WePM
...
FrPM
(checkboxes)
I created a view so now people of my school can search for available people. When I choose "is one of" in views and select them all, there is no problem. When I select "is all of", and select all, the site crashes and doesn't display the available people.
It's served on a normal hosting so I have not the capability to upgrade the server.
Is there someone who has another option, to make this less database intensive.
Thanx a lot!!!
Comments
This is the query that gets
This is the query that gets executed:
Quit impossible I guess...
According to my hosting
According to my hosting company it takes 1200 seconds to execute!!
I don't know about the great
I don't know about the great database insight but....
What is normal hosting? is that shared hosting, then move to a VPS or go dedicated.
My gut feeling tells me you need more groupings, like a computed field that is "*all" and then base your search criteria on one field (within the constraints of the way you have set it up).
On a shared host I would do what you are doing with taxonomy terms
example:
Availability:
none
workweek
-mo
--moam
--mopm
-tu
--tuam
--tupm
. .
weekend
-sa
--saam
--sapm
-su
--suam
--supm
weekpm
-mopm
-tupm
nolife
-workweek
-weekend
etc etc
and then you could just select the term, and you would not even need a view for this but just use the taxonomy selectors ( http://drupal.org/node/299 under "Using categories in menus") or you could opt to go with the view just only selecting the term.
Hope this helps.
PS. test and see if it works with your other specs before applying.
Thanx for the quick
Thanx for the quick reply!!
It's indeed shared hosting. I am going to try first with taxonomy like you explained. I also thought about the computed field with grouping methods.
I'll report my findings with taxonomy.
Thanx!
What happens with taxonomy if
What happens with taxonomy if you select "moam" (monday am) for users who have selected "mo" (monday)?
If mo = term 2 and moam
If mo = term 2 and moam =term4
And you want to select everyone who can work on monday(mo) or on monday morning(moam) your selection would be taxonomy/term/2+4 see http://drupal.org/node/299.
If you want to see ONLY people available for moam then taxonomy/term/4.
You don't have to have mo, it was just an example, I don't know your full specs.
You decide what you get to see, depending on how you allow user input (procedurally or in the theming layer).
PS. you can also use http://drupal.org/project/taxonomy_super_select to force end term selections, and avoid users selecting monday etc.
I created some extra fields
I created some extra fields like:
Complete week
Mo
Moam
Mapm
...
The queries are still too long for my shared hosting...