AddThis Social Bookmark Button
Free Dating
search My Threads  

Main    Matchdoctor.com Suggestions/Help   

-1 messages in the mailbox


Dec 30, 2006 @ 1:24 AM -1 messages in the mailbox    
null_geodesic


Posts: 684
There appears to be something wrong with the mail counter. My inbox is empty, yet the system claims I have -1 messages in my inbox.
post reply view null_geodesic's threads
Dec 30, 2006 @ 1:52 AM -1 messages in the mailbox    
T_i_m


Posts: 809
Try sending yourself mail and then deleting it.
post reply view T_i_m's threads
Dec 30, 2006 @ 8:25 AM -1 messages in the mailbox    
null_geodesic


Posts: 684
I really don't mind -1 at all. I was just reporting it because it indicates a bug in the MD code base.
post reply view null_geodesic's threads
Dec 31, 2006 @ 5:03 AM -1 messages in the mailbox    
Palomino


Posts: 7,635
Dang! I hope this doesn't happen to me! I keep seeing these "bugs" in the email system since they pruned the mailboxes!
post reply view Palomino's threads
Jan 1, 2007 @ 5:32 PM -1 messages in the mailbox    
null_geodesic


Posts: 684
It's probably harmless. I'm going to guess that the number of mails each user has listed (e.g. by letting the mouse hover over the "mail" link in the banner) is a number in the user's "main table", something like:

select mail_number from user_table where userID=1234;

and that this number gets updated whenever you delete the email or are sent an email.

But when it comes time to actually _read_ the email, the number is probably generated by counting the actual number of returns in the mail table:

select count(messages) from user_mail where userID=1234;

I've never programmed a web app anywhere near as big as MD, but I'm guessing you'd want to do this seemingly redundant record keeping because it's much less expensive to select from one table than it is for two tables. Plus, I'm sure all that count()'ing is expensive too. It prolly isn't a big deal if you have like 100 people, but if you have 1000's of people, then opening two tables and performing a count() operation each and every time someone loads a page (since the "mail" link is on the header banner of each MD page) would be really taxing on their database.

That's my guess, at least.

Null!
post reply view null_geodesic's threads
Jan 1, 2007 @ 9:43 PM -1 messages in the mailbox    
beckyiv42000


Posts: 14,576
null??? you lost me at -1 up there^^^
post reply view beckyiv42000's threads
Jan 2, 2007 @ 2:05 PM -1 messages in the mailbox    
mdTech2


Posts: 119
I have -1 messages

I figured you would have square root of -1 messages. Kidding aside, are you still having this problem?
post reply view mdTech2's threads
Jan 5, 2007 @ 12:34 AM -1 messages in the mailbox    
null_geodesic


Posts: 684
LOL! I assure you, it wasn't imaginary!

It seems to have gone away. I did see someone with -1 blogs tonight though. Dangit. I can't remember who.

I should've made a note of who it was. Next time I see something like that, I'll report the offending URL immediately. I'll try going back to everyone I emailed tonight and see if I can catch it again.
post reply view null_geodesic's threads
Jan 5, 2007 @ 2:34 AM -1 messages in the mailbox    
SunBabe


Posts: 12,279
Heck, I see negative blogs all the time

post reply view SunBabe's threads
Jan 5, 2007 @ 6:21 AM -1 messages in the mailbox    
T_i_m


Posts: 809
I saw a poster in the forums and next to his message his post count was listed as zero. That was in a thread that was reported as abuse and is now gone.
post reply view T_i_m's threads
Jan 15, 2007 @ 10:32 AM -1 messages in the mailbox    
null_geodesic


Posts: 684
Here we go. Consider Orphes1's blog. As of:

$ date
Mon Jan 15 10:31 AM

He has 3 blogs:

Scammers and fighting back
This just about made my day!!!
A nice day!

But on the blog tab it says he only has 2 blogs.
post reply view null_geodesic's threads
Jan 15, 2007 @ 12:53 PM -1 messages in the mailbox    
mdTech2


Posts: 119
He has 3 blogs...But on the blog tab it says he only has 2 blogs

I guess he was in the process of deleting blogs (not sure why people do that...we have plenty of room....) and the counts were off. I just checked a few minutes ago and they match again. Since you're a programmer too I'll explain: some queries are too expensive to do with every page load. If the data changes less often than it is read,
we may take a few minutes to update it.

How's your mailbox count? Still (-1)^0.5 messages?
post reply view mdTech2's threads
Main    Matchdoctor.com Suggestions/Help    -1 messages in the mailbox

free adult dating | mission statement | testimonials | safety warning | report abuse | safe list | privacy | legal | advertise | link to us

© Copyright 2000-2009 Online Singles, LLC.
WEB2