Skip to content

Get-ParsedSqlOffsets is parsing the content twice #33

Description

@Charles-Gagnon

It's calling Get-ParsedSql twice which should be unnecessary - you should be able to just cache the parse result and re-use that for the second one.
https://github.com/dfinke/PowerShellNotebook/blob/master/ConvertToSQLNoteBook.ps1#L32
https://github.com/dfinke/PowerShellNotebook/blob/master/ConvertToSQLNoteBook.ps1#L50

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions