Unless otherwise stipulated by the parties, the court shall no later than 30 days after the filing of the petition file its order granting or denying the petition. However, the court may on its own motion for good cause extend such time an additional 30 days. If the order grants the petition in whole or part, the order shall set forth the manner in which the respondent shall comply and the period of time following the effective date of the order within which such compliance is required. A copy of the order shall be served by mail by the clerk upon the parties. If the order grants the petition in whole or in part, the order shall not
become effective until 10 days after it is served. If the order denies the petition, it shall become effective on the date it is served. The order of the superior court shall be final and not subject to review by appeal. A party aggrieved by such order, or any part thereof, may within 15 days after the service of the superior court’s order, serve and file in the appropriate court of appeal a petition for a writ of mandamus to compel the superior court to set aside or otherwise modify its order. If or whenever such review is sought from an order granting discovery, the order of the trial court shall be stayed upon the filing of the petition for a writ of mandamus, provided, however, the court of appeal may dissolve or modify the stay thereafter if it is in the public interest to do so. If or whenever such review is sought from a denial of discovery, the trial court’s order shall not be stayed by the court of appeal except upon a clear showing of probable error. (GC 12963.5)