-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/116707/#review54876
-----------------------------------------------------------


Sorry for the super late review.


contact-cache.cpp
<https://git.reviewboard.kde.org/r/116707/#comment38322>

    This is theoretically a bit slow.
    
    I'm leaning towards taking this towards doing it fully normalised. 
    
    i.e
    
    contactGroups:
    accountId*, contactId*, groupId
    
    groups:
    groupId*, groupName
    
    I don't think it would be any more code as you'd then simplify a lot. I 
think our efforts to keep things simple end up in code that's actually harder 
to comprehend.
    
    These 10 lines would become just:
    db.exec("DELETE FROM groups where groupId NOT IN (SELECT DISTINCT(groupId) 
FROM  contactGroups)")
    
    then we don't need to keep a weird map in memory with potential null values 
and askIdForGroup becomes simpler too.


- David Edmundson


On March 14, 2014, 10:35 a.m., Alexandr Akulich wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/116707/
> -----------------------------------------------------------
> 
> (Updated March 14, 2014, 10:35 a.m.)
> 
> 
> Review request for Telepathy.
> 
> 
> Repository: ktp-kded-module
> 
> 
> Description
> -------
> 
> Implemented in most simple and short way. I hope, there is no significant 
> flaws.
> 
> 
> Diffs
> -----
> 
>   contact-cache.h 8fa6fac 
>   contact-cache.cpp 47fe0cd 
> 
> Diff: https://git.reviewboard.kde.org/r/116707/diff/
> 
> 
> Testing
> -------
> 
> Working good.
> 
> 
> Thanks,
> 
> Alexandr Akulich
> 
>

_______________________________________________
KDE-Telepathy mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-telepathy

Reply via email to