Delete not working

Technical support and discussion of Newsbin Version 6 series.

Delete not working

Postby Murg » Thu Dec 11, 2014 8:03 pm

Delete is not working in 6.54. At least not when multiple groups are combined into a single tab. I think that behaviour has been going on for some time.

While the items are disappearing off of the group screen when deleted, they aren't being deleted in the database, so they show up in any historical display of the groups.

Something I saw once leads me to think that this is related to items that are in multiple groups.
Murg
Active Participant
Active Participant
 
Posts: 71
Joined: Sat Jan 08, 2005 8:58 pm

Registered Newsbin User since: 01/05/05

Re: Delete not working

Postby Quade » Fri Dec 12, 2014 3:48 pm

I've not seen it fail recently. Wonder if you waited long enough? It's a background process. If you keep deleting them does it eventually go away?

Delete's only apply to the currently loaded group so, if you load a single group and delete from there, it won't delete from any other group that's not currently loaded into the same post list.

I'll see if I can reproduce it. I assume you're using "Shift-Delete" because just plain delete doesn't actually delete anything.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44994
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Delete not working

Postby Murg » Sun Dec 14, 2014 9:20 am

I'm using the Delete Posts button (mark posts as deleted), which I customised the icon bar with.

And the time frame is several days and multiple invocations of the program.

I have three groups in a Groups List folder (or whatever they're called). So the three groups get displayed together.
Murg
Active Participant
Active Participant
 
Posts: 71
Joined: Sat Jan 08, 2005 8:58 pm

Registered Newsbin User since: 01/05/05

Re: Delete not working

Postby Quade » Sun Dec 14, 2014 11:50 am

I'm using the Delete Posts button (mark posts as deleted), which I customised the icon bar with.


"(mark posts as deleted)"

Is kind of throwing me off. If you look in the right click menu you'll see

"Mark Posts Old"
and
"Delete Posts (Shift-del)"

The second one actually deletes the posts, the first just marks them old. I'll assume you're using the second one but, you might want to confirm your shortcut to make sure it's using that one.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44994
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Delete not working

Postby Murg » Sat Dec 20, 2014 5:45 am

I customised the Main tool bar. Added the Customise/Commands/Posts/Delete Posts button to it.

Two entries above this one is the 'Mark Posts Old', which I'm not using.
Murg
Active Participant
Active Participant
 
Posts: 71
Joined: Sat Jan 08, 2005 8:58 pm

Registered Newsbin User since: 01/05/05

Re: Delete not working

Postby Quade » Sat Dec 20, 2014 10:38 am

Well, how about selecting them and using Shift-Delete then give it a few seconds, then re-load the group and see if they're gone.

I need to find some cross posts and try specifically deleting them. Cossposts should show multiple groups in the post list.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44994
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Delete not working

Postby Murg » Wed Mar 18, 2015 3:38 am

Delete is now working in 6.56.

Thanks...
Murg
Active Participant
Active Participant
 
Posts: 71
Joined: Sat Jan 08, 2005 8:58 pm

Registered Newsbin User since: 01/05/05

Re: Delete not working

Postby Murg » Wed Mar 18, 2015 7:59 am

Sorry, delete is not working in 6.56.

It worked on non-old headers (permanent deletion), but is not working on old headers.

Cross-posted headers doesn't seem to be a factor.
Murg
Active Participant
Active Participant
 
Posts: 71
Joined: Sat Jan 08, 2005 8:58 pm

Registered Newsbin User since: 01/05/05

Re: Delete not working

Postby Murg » Fri Mar 20, 2015 3:05 am

Some times delete is working, sometimes it isn't.

It seems to be working on non-old headers.

For old headers, it seems to work for smaller number of items, but if you're deleting 1000s at a time, then it doesn't seem to work.
Murg
Active Participant
Active Participant
 
Posts: 71
Joined: Sat Jan 08, 2005 8:58 pm

Registered Newsbin User since: 01/05/05

Re: Delete not working

Postby Quade » Fri Mar 20, 2015 8:03 am

I'll check it out in 6.60. There aren't going to be anymore 6.5X releases. I have a feeling I already addressed this though and improved the performance of delete.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44994
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Delete not working

Postby Murg » Mon Mar 23, 2015 1:02 am

Ok. Delete is working.

If you are deleting many headers it takes a long time. With no indication that the actual deletion is a background process. This is what lead to the confusion.

When exiting Newsbin, it looks like delete doesn't save the headers to be deleted that haven't been deleted yet, so they never get deleted.

Now my question is how do I reclaim the 10s of gigabytes of database space now being consumed by deleted headers?
Murg
Active Participant
Active Participant
 
Posts: 71
Joined: Sat Jan 08, 2005 8:58 pm

Registered Newsbin User since: 01/05/05

Re: Delete not working

Postby Quade » Mon Mar 23, 2015 1:09 am

Right click the group "Post Storage/Compact Database".

When you download headers again through, It'll just re-use the space left after the delete. The DB file will just stop growing.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44994
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Delete not working

Postby antisane » Wed Mar 25, 2015 8:13 am

I have the same problem with delete taking forever, but in in large/busy groups.

The only way to know if it is done is watch the task manager (newsbin takes up about 10-12% of the CPU while this is happening). And as was said before, if I exit and restart the posts are back that I told it to delete.

Going on 2+ hours now for 1 of my groups that I tried to cleanup Image link not allowed for unregistered users
antisane
n00b
n00b
 
Posts: 5
Joined: Wed Mar 25, 2015 1:44 am

Re: Delete not working

Postby Murg » Wed Apr 01, 2015 7:35 pm

I wonder if it is doing one delete sql per header, or building a delete table and issuing a single delete command for all the deletes in a chunk?
Murg
Active Participant
Active Participant
 
Posts: 71
Joined: Sat Jan 08, 2005 8:58 pm

Registered Newsbin User since: 01/05/05

Re: Delete not working

Postby Quade » Wed Apr 01, 2015 10:05 pm

It collects up all the records and then starts a transaction and deletes within a transaction. Each delete has to delete from 3 different tables.

I don't get why you have so many to delete. You're not re-downloading headers each time are you?
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44994
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Delete not working

Postby Murg » Fri Apr 03, 2015 7:47 pm

Some of the groups are getting thousands of spam headers a day (or meaningless character combinations).

If you look at multiple groups like this, then you can get tens of thousands of deletions a day.

When you say it collects up all the records, is that for a single Delete UI action? So, if I delete 5 sets of posts, does it do 5 SQL deletes or does it aggregate them into a single SQL delete? If it aggregates, how long does it wait before it decides there is nothing more to aggregate?

The problem wouldn't be so bad if it remembered the to-be-deleted-but-not-yet-deleted headers between sessions.
Murg
Active Participant
Active Participant
 
Posts: 71
Joined: Sat Jan 08, 2005 8:58 pm

Registered Newsbin User since: 01/05/05

Re: Delete not working

Postby Quade » Fri Apr 03, 2015 8:04 pm

1 - Assume you have 10 groups loaded into a post list and this spam is posted to all 10 groups.

2 - You select 100 of these and shift-delete.

3 - Newsbin will collect the unique ID up for each crosspost and note each group. Each group has a unique ID for crossposts so, 10 groups, 10 crossposts = 10 ID's per post. One per group).

4 - Newsbin hands this information off to a worker thread.

5 - It partitions the data by group.

6 - It opens one group, starts a transaction, deletes 2-3 records per selected line set so, call is 200-300 deletes if you started with 100 selected posts. .

7 - Repeats 6 with a new group until all records have been deleted.


What I'm describing is worst case. Typically you don't have that many groups loaded and you don't have so many crossposts.

You can watch it work with procmon.

"Delete all Posts by Poster" is pretty effective too.

The problem wouldn't be so bad if it remembered the to-be-deleted-but-not-yet-deleted headers between sessions.


Leave it running till it's done.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44994
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Delete not working

Postby antisane » Fri Apr 03, 2015 9:29 pm

Quade wrote:Leave it running till it's done.


This would be easier if we had some type of notification telling us it was still working on it (or when it was done). Right now the only way to know this (as far as I know) is looking at windows task manager.
antisane
n00b
n00b
 
Posts: 5
Joined: Wed Mar 25, 2015 1:44 am

Re: Delete not working

Postby Quade » Fri Apr 03, 2015 10:11 pm

Yeah task manager or procmon. I'll think about it.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44994
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Delete not working

Postby Murg » Fri Apr 10, 2015 9:54 pm

Basically, once we hit delete, and the UI comes back from doing whatever processing it does, then the delete should happen, even if we close Newsbin before the delete finishes. If we close Newsbin before the delete finishes, it should continue the delete the next time it is run.
Murg
Active Participant
Active Participant
 
Posts: 71
Joined: Sat Jan 08, 2005 8:58 pm

Registered Newsbin User since: 01/05/05


Return to V6 Technical Support

Who is online

Users browsing this forum: Google [Bot] and 2 guests