Section 17. A judgment or decree, at law or in equity, rendered after June eighth, eighteen hundred and ninety-two, affecting the title to real property, shall not have any effect except against the parties thereto, their heirs and devisees and persons having actual notice thereof, unless a certified copy of the record thereof has been recorded in the registry of deeds for the county or district where the land lies, with a memorandum of the town where the land lies and a description thereof sufficiently accurate for identification if the record of the judgment or decree does not give those particulars. If a notice of the pendency of the action has been duly recorded in the registry of deeds, the record of the judgment or decree may be made within sixty days after its rendition, and the entry of an ordinary attachment of real property in the registry of deeds shall be considered notice of the pendency of the action.