Feature #1160

Clean login process when using lots of entities

Added by moyo over 12 years ago. Updated over 12 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:moyo% Done:

0%

Category:Common
Target version:0.72

Description

Solution :
- only load active entities not entity tree (create IN condition string ? )
- store entity sons in cache
- dynamic load of entity tree when parsing it
- only load available profile not all datas (optional)

Work comments

- use cache ?
- only load active entities of active profile and dynamic load tree on display ?
- only load available profile (ID and name and root entities) not all datas, load datas and active entities on change ?
- with 10000 entities : 
- without glpi_entity_tree : direct login
- with glpi_entity_tree : more than x minute(s)
- without contructTreeFromList : 17s
- using getSonsOfTreeItem : 30s

History

#1 Updated by moyo over 12 years ago

- with 10000 entities :
- without glpi_entity_tree : direct login
- with glpi_entity_tree : more than 1 minute

#2 Updated by moyo over 12 years ago

Replying to [comment:2 moyo]:

- with 10000 entities :
- without glpi_entity_tree : direct login
- with glpi_entity_tree : more than 1 minute

#3 Updated by moyo over 12 years ago

see r7428

#4 Updated by remi over 12 years ago

Also to improve the rules engine for right assignment.

If 10000 entities, evaluate 10000 rules on each login is probably impossible.

Ideas :
- use ldap timestamp to check if running rules is needed
- allow regex for ldap attributes (if ldap attribute match regex, set profile Foo-#0, set entity Bar-#1, for exemple).

#5 Updated by jmd over 12 years ago

Replying to [comment:11 remi]:

Also to improve the rules engine for right assignment.

If 10000 entities, evaluate 10000 rules on each login is probably impossible.

Ideas :
- use ldap timestamp to check if running rules is needed
- allow regex for ldap attributes (if ldap attribute match regex, set profile Foo-#0, set entity Bar-#1, for exemple).

deux problématiques différentes , j'ouvre un nouveau ticket à ce sujet #1166

#6 Updated by moyo over 12 years ago

(In r7462) Clean login process when using lots of entities
see #1160

#7 Updated by moyo over 12 years ago

(In r7465) missing file see #1160

#8 Updated by moyo over 12 years ago

  • Status changed from New to Closed

Also available in: Atom PDF