Go Back   Pligg Forum > Pligg Help > General Help
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-30-2007, 08:26 PM
dollars5's Avatar
dollars5 dollars5 is offline
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,161
Downloads: 29
Uploads: 1
Thanks: 292
Thanked 267 Times in 178 Posts
Exclamation performance of Pligg + karma integration

Hi,

I would really liked to know the performance of Pligg in the following terms:
1] number of queries per page display (is it possible to see it in html as we have in wordpress)
2] why is Pligg kinda slow - is it fully attributed to Smarty and is it possible to get rid of it?
3] I [plan to display Karma of each user next to his name (where ever it gets displayed) - so is calls to karma gonna have an overhead in terms of DB calls? if so how many calls does it make?
4] Any good pointers on Karma module tweaking for my requirement as stated above?
5] Is any db calls optimization possible further on Pligg as a whole?

Thanks and looking forward for your answers.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-31-2007, 03:08 AM
savant's Avatar
savant savant is offline
Pligg Koder
 
Join Date: Apr 2006
Location: UK
Posts: 1,234
Downloads: 7
Uploads: 0
Thanks: 66
Thanked 210 Times in 151 Posts
1. you can open /lib/db.php and set $debug_all = true

2. Pligg is slow the first time as it needs to compile the .tpl files into php files. After that the script is a bit quicker. Applications like Pligg is very data intensive so you do need a nice server and database. pliggers have brought new ideas like using gzip to compress the js and css files.

3. The karma value is part of the User Data. /libs/user.php so you can create a new user object and use the method read(). and display $user->karma.
This is OOP method and will get all the information about the user from just the database. Select * from table where username= "Something" will take longer than select karma from table where username="something". So you will need to find out whether OOP or Procedural is better for you.

4. As far as i know there isn't much on karma atm. Best let KB or Ash answer this.

5. We are open to suggestions. If you can find better methods please do post.
__________________
Anatomy of the Pligg template Help needed
Reply With Quote
  #3 (permalink)  
Old 01-31-2007, 12:41 PM
dollars5's Avatar
dollars5 dollars5 is offline
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,161
Downloads: 29
Uploads: 1
Thanks: 292
Thanked 267 Times in 178 Posts
Thanks savant for your quick reply.

1. Worked great and gave me some idea.

2. So slowness of Pligg doesn't have anything to do with Smarty Engine? I was assuming Smarty causes the slowness.

3. ur suggestion on Karma worked and thanks

4. waiting for ashDigg or KB answer this.

5. me still sxploring the world of Pligg, once I get more familiar - sure I would pour in with suggestions and code contributions :)
Reply With Quote
  #4 (permalink)  
Old 01-31-2007, 01:53 PM
savant's Avatar
savant savant is offline
Pligg Koder
 
Join Date: Apr 2006
Location: UK
Posts: 1,234
Downloads: 7
Uploads: 0
Thanks: 66
Thanked 210 Times in 151 Posts
2. It's using template lite which is smarty lite. and yes templating is one of the reasons the site is a bit slow. But with proper caching and performance enhancements i'm sure pligg can be made better.
__________________
Anatomy of the Pligg template Help needed
Reply With Quote
  #5 (permalink)  
Old 01-31-2007, 02:15 PM
Adaman's Avatar
Adaman Adaman is offline
Constant Pligger
Pligg Version: v9.8.2
Pligg Template: Custom
 
Join Date: Jan 2007
Location: Scotland
Posts: 111
Downloads: 55
Uploads: 0
Thanks: 23
Thanked 17 Times in 7 Posts
I do not know if this will be of any use to this thread but i was reading a nice litle article on smarty template cache, you can see it below.

http://alexander.kirk.at/papers/cach...thesisch9.html

Adam
Reply With Quote
  #6 (permalink)  
Old 01-31-2007, 10:32 PM
dollars5's Avatar
dollars5 dollars5 is offline
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,161
Downloads: 29
Uploads: 1
Thanks: 292
Thanked 267 Times in 178 Posts
Very Good read Adaman. We should get some lead devs of Pligg to read this too - optimization and speedup is a major issue for pligg as I see, rather than adding more features which will further slow down the system.

The reason I was worried on db was many hosts have a slower server for their db systems and each call will take say n seconds and if Pligg takes say m such calls the total delay in rendering the page is gonna be (m X n) seconds which is very significant. By grouping many database and reading only critical data needed we can optimize in this part - just my suggestion.

Will review the pligg db access and db structures and will come up with pin-pointed suggestions - sooner.
Reply With Quote
  #7 (permalink)  
Old 01-31-2007, 10:36 PM
AshDigg's Avatar
AshDigg AshDigg is offline
Mayor of PliggVille
 
Join Date: Dec 2005
Posts: 1,623
Downloads: 34
Uploads: 10
Thanks: 237
Thanked 346 Times in 207 Posts
We have been working on caching and have been having some troubles but we're still working on it. :)
__________________
- Ash
Reply With Quote
  #8 (permalink)  
Old 01-31-2007, 11:09 PM
dollars5's Avatar
dollars5 dollars5 is offline
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,161
Downloads: 29
Uploads: 1
Thanks: 292
Thanked 267 Times in 178 Posts
Good to hear that from you AshDigg.

We are also eager to help you out in this area. Our company works mainly into mobile and now entered into social networking development too - I can get our Web development team to work closely with you on making Pligg better (it is already better compared to many other things)

Thanks and Regards.
dollars5
http://www.dollars5.com/plete
Reply With Quote
  #9 (permalink)  
Old 02-01-2007, 02:50 AM
savant's Avatar
savant savant is offline
Pligg Koder
 
Join Date: Apr 2006
Location: UK
Posts: 1,234
Downloads: 7
Uploads: 0
Thanks: 66
Thanked 210 Times in 151 Posts
thats great dollars5. the more the merrier. :)
__________________
Anatomy of the Pligg template Help needed
Reply With Quote
Reply



Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Pligg integration with osc albert Customization Assistance 4 08-06-2008 09:20 PM
PHPBB Integration with Pligg Yankidank Drawing Board 64 06-07-2008 05:54 AM
bbpress.org integration with pligg? daveyc Pligg Mods 1 08-03-2006 12:32 PM
Page titles & breadcrumbs AshDigg Core Development 11 06-30-2006 06:35 PM


LinkBacks Enabled by vBSEO 3.0.0