A followup to the issue I was having yesterday, so I've successfully created a schedule job to delete AS records every hour.  global class sharedeletebatch Implements Database.batchable&lt;sobject&gt; {       global final string query;      global sharedeletebatch(string q){            query=q;      }       global Database.QueryLocator start(Database.BatchableContext BC){        return Database.getQueryLocator(query);      }      global  void execute(Database.BatchableContext BC,List&lt;SObject&gt; scope){          delete scope;      }     global void finish(Database.BatchableContext BC){     }   }  global class deleteaccountsharebatch implements Schedulable {        global void execute(SchedulableContext SC)     {         string str='select id from AccountShare where lastmodifiedbyid =\'0050P000007Kfy2\' limit 5000';         sharedeletebatch bdt=new sharedeletebatch(str);         Database.executeBatch(bdt);         system.debug(bdt);           }    }   then I run this in anonymous window.    deleteaccountsharebatch m = new deleteaccountsharebatch(); String sch = '0 0 * * * ?'; String jobID = system.schedule('Hourly Job', sch, m);   The problem I'm having is that it keeps giving me "[REQUEST_RUNNING_TOO_LONG] Your request was running for too long, and has been stopped." error no matter how small I make the limit of the query.  So is that even the issue? Is there any other option or approach to mass delete a bunch of records on a schedule? I had no success with data loader either, similar 'been 10 min time out' error.
Been doing tests in sandbox in which I've created about a million accountshares that I need to get rid of for testing.   I'm trying data loader in bulk api mode to export than delete but I keep getting:     InvalidBatch : Failed to process query: QUERY_TIMEOUT: Your query request was running for too long. Trying again later.;   Not sure if I should be waiting longer? Any other options or dataloader configurations I should be looking at?  EDIT  I've been trying with batch apex jobs yet still having issues.   Script  string str='select id from AccountShare where lastmodifiedbyid =\'0050P000007Kfy2\' limit 10000'; sharedeletebatch bdt=new sharedeletebatch(str); Database.executeBatch(bdt); system.debug(bdt);   Batch  global class sharedeletebatch Implements Database.batchable&lt;sobject&gt; {       global final string query;      global sharedeletebatch(string q){            query=q;      }       global Database.QueryLocator start(Database.BatchableContext BC){        return Database.getQueryLocator(query);      }      global  void execute(Database.BatchableContext BC,List&lt;SObject&gt; scope){          delete scope;      }     global void finish(Database.BatchableContext BC){     }   }      First error: [REQUEST_RUNNING_TOO_LONG] Your request was running for too long, and has been stopped.
I have some difficulties with a task in algebra. I guess it's trivial and really easy but I can't figure out how to solve it.  I have a set $G$ and a binary operation on it, let it be $\circ$. I have that the operation is associative and that the equations $a\circ x = b$ and $x\circ a = b$ have unique solutions. I have to prove that $(G, \circ)$ is a group.  I already have that the operation is binary and associative, so I have to prove that there is unique identity element and unique inverse element and it will come from the equations, but how exactly? Can I travel to Canada with valid visa on old/expired passport? I recently renewed my passport. I also have an expired passport which has my Canada visa (visitor's) valid for another three years. I have already used my Canadian visa which is multiple entry. I am planning to visit Canada this summer.  Since my valid Canadian visa is in my old/expired passport, do I need to renew/transfer my Canada visa or can I simply travel with valid visa in old passport? Space ship manned by only AI returns home to a different earth, back in time Another layman blackhole question, pulling one end of a string out from behind the event horizon No long explanation is needed,  What would happen if I were to allow one end of a rope to fall past the event horizon of a black hole while I held the other end?  Would I be able to pull it out? Would the rope feel extremely (infinitely?) heavy? Self-deleted posts and the 3 vote / 60 day rule With regards to  post about  and the part about retaining reputation earned from deleted posts that have a score of 3 or better and were visible on the site for 60 days, does this also apply to self-deleted posts and will it continue to do so? I culled a few of my own answers over the weekend that were less than stellar, and my reputation dropped 1.8k, but the rep is back today after the changes were announced. I thought it would be useful to clarify that this also applies to self-deleted stuff. What is an example of "this" assignment in C#? Does anybody have useful example of this assignment inside a C# method? I have been asked for it once during job interview, and I am still interested in answer myself. Measuring accuracy of a logistic regression-based model Print lines between (and including) two patterns I've noticed a distressing tendency for questions that seem basic or overly short to be immediately closed and downvoted into oblivion.  Case in point:   Within a minute of being asked, this question received 12 downvotes and was closed as "not a real question".  That particular question is a very real, non-trivial question, but it had somewhat poor grammar and looked a little like a much simpler question.  Can we try to be a little more accepting? Are Variable Operators Possible? I'm using the 1-25-19 version of 2.8 beta. You have to double tap "a" every time you want to deselect something which is very annoying. Is there a way to make "a" work the old way where "a" selects all if nothing is selected and "a" deselects all if something is selected? ie. no double tap and no alt? If we disbelieve $H_0$, why quote a p value calculated assuming $H_0$ was true? Hypothesis testing seeks to reject a null hypothesis ($H_0$) on the basis of an assumption made about the sample following a certain distribution. This assumption is conditional on $H_0$ being true. So what is the flaw with the following reasoning?     If I reject $H_0$ in favor of the alternative hypothesis ($H_1$), I   must then assume that (1) $H_1$ is true, and (2) that at the   same time the variable under examination follows the distribution   used to reject $H_0$. Since we also stated that the assumed   distribution is conditional on $H_0$ being true, it appears that $H_0$   has got to be true in order to justify the assumption made about the   distribution. Logically, it would therefore seem that both $H_0$ and   $H_1$ have to be true, which is a paradox, because they are mutually   exclusive! How do I get a DOI for a dataset? A DOI is a commonly used digital object identifier to refer to an electronic document. How do I secure a DOI for a research dataset, to help share and identify it? Prove that the equation $x^2-y^2 = 2002$ has no integer solution Can Dementors die? Based upon , J.K. Rowlings has apparently stated "You cannot destroy Dementors, though you can limit their numbers if you eradicate the conditions in which they multiply, ie, despair and degradation."  Does this mean that the number of Dementors is always either increasing or remaining the same?  If they cannot be destroyed, does that mean they are immortal?  Or do they die of "natural causes"? I tried a couple of substitutions but have so far gotten nowhere. Can anyone guide me in the right direction? Thanks for your time. How to move a window if titlebar is overlapped by Ubuntu menu Somehow the title-bar of chrome was overlapped by Ubuntu menu-bar like attached image.  In this case how to move this chrome window? Supersymmetry in Quantum Field Theory Example of a domain where all irreducibles are primes and that is not a GCD domain One has the following relations for a domain $R$:  $R$ GCD domain $\Rightarrow$ All irreducible elements are prime  $R$ PID $\Rightarrow$ $(R$ GCD domain $\land$ $R$ statisfies ACCP$)$  $R$ UFD $\Leftrightarrow$ $(R$ GCD domain $\land$ $R$ satisfies ACCP$)$  $R$ satisfies ACCP $\Rightarrow$ $(R$ UFD $\Leftrightarrow$ All irreducible elements are prime$)$  $R$ GCD domain $\Rightarrow$ $(R$ UFD $\Leftrightarrow$ $R$ atomic domain$)$  So what is the difference between a GCD domain and a domain where all irreducible elements are prime? What is the "weakest" predicate $P$ such that  $R$ GCD domain $\Leftrightarrow$ $($All irreducible elements are prime $\land$ $P(R))$ ? Why does virtualbox only have 32-bit option, no 64-bit option on Windows 7? I have downloaded and installed the newest  for my Windows 7 (64-bit OS), but when I want to install 64-bit Linux, the New->Create Virtual Machine only displays 32-bit option, no 64-bit option. Could anyone give any clues about this issue? Thanks very much in advance!