Products
Demo
Forum
Login
Register
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
May 24, 2012, 16:42:46
Advanced search »»
JoomlaTune Support Forum
JComments component
Suggestions, Wishlists & Feature Requests
Topic:
Voting databank problems
Pages: [
1
]
Go Down
Print
Author
Topic: Voting databank problems (Read 1388 times)
0 Members and 1 Guest are viewing this topic.
genesis26
Newbie
Karma: 0
Offline
Posts: 3
Voting databank problems
«
on:
June 07, 2011, 17:50:12 »
Hi
in high traffic situations there seems to be a problem with the voting system.
Problem: votings are in an extra database table. (js_comments_votes)
Every IP Adress is registered for every vote.
NOW THE PROBLEM:
is it correct, that the system looks up the ip adress of every single new voter in order to avoid doulbevoting?
If so, it seems to be necessary the the ip adress column has to be indexed.
Otherwise this would result in a linear look up. If traffic is high an many people vote: database performance decreases until collaps - depending on the number of voters.
mmnews.de has Thousends of comments and Millions of votes. We have to empty the voting-table now every day in order to avoid databank problems.
SOLUTION
Eiter a cron that empties the table every day or after a certain amount of votings
or
an index on the ip-adress-column
Logged
smart
Administrator
Hero Member
Karma: 160
Offline
Gender:
Posts: 2559
Re: Voting databank problems
«
Reply #1 on:
July 26, 2011, 05:57:21 »
Does creating index on IP column solve the problem? I do not have huge data to test this solution... If you can make some tests with indexed column - please post here testing results? Will this affect to server's load?
Any way, in my mind your idea about table clearing is interesting... We could delete some items depends on their date (for example older than one week).This will still prevent double votes from one IP during one week and also will decrease server's load.
I'll move this topic to Suggestions board...
Logged
If you use JComments, please post a rating and a review at the
Joomla! Extensions Directory
Pages: [
1
]
Go Up
Print
JoomlaTune Support Forum
JComments component
Suggestions, Wishlists & Feature Requests
Topic:
Voting databank problems
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Announcements
-----------------------------
JComments component
-----------------------------
=> General discussion
=> Suggestions, Wishlists & Feature Requests
=> Integration with third-party extensions
===> AlphaUserPoints
===> CommunityBuilder
===> K2 JComments
=> Translations
=> Bug-reports
-----------------------------
ProofReader component
-----------------------------
=> General discussion
=> Suggestions, Wishlists & Feature Requests
=> Translations
=> Bug-reports
-----------------------------
Other extensions
-----------------------------
=> Plugins
=> Modules
Loading...