# What is Fast Forking for PostgreSQL® on Azure NetApp Files?

[Blog](/blog/)&gt;[Technology](/blog/category/technical/)&gt;What is Fast Forking for PostgreSQL® on Azure NetApp Files? 

What is Fast Forking for PostgreSQL® on Azure NetApp Files?
===========================================================

June 11, 2024 | By [ Phuong Vu](https://www.instaclustr.com/blog/author/phuong-vu/)

 

 

 

 



   [ ](https://x.com/intent/tweet?text=What%20is%20Fast%20Forking%20for%20PostgreSQL%C2%AE%20on%20Azure%20NetApp%20Files?&url=https://www.instaclustr.com/blog/what-is-fast-forking-for-postgresql-on-azure-netapp-files/) [ ](https://www.linkedin.com/shareArticle?mini=true&url=https://www.instaclustr.com/blog/what-is-fast-forking-for-postgresql-on-azure-netapp-files/&title=&summary=What%20is%20Fast%20Forking%20for%20PostgreSQL%C2%AE%20on%20Azure%20NetApp%20Files?&source=) 

**Are you looking for a way to cut down the time it takes to backup and restore PostgreSQL® operations on large databases? Are you already using the Instaclustr Managed PostgreSQL service on Azure NetApp Files (ANF) and wondering what the new [Fast Forking](https://www.instaclustr.com/blog/fast-forking-for-postgresql-on-azure-netapp-files/) feature is all about?**

Whatever your question, this blog is here to answer it.

### What is PostgreSQL–ANF Fast Forking? 

Based on NetApp’s industry-leading ONTAP storage management software, ANF is a cloud-native file storage service optimized to handle the most demanding file workloads with sub-millisecond response times. ANF has already [turbocharged the speed of PostgreSQL](https://www.instaclustr.com/resources/postgresql-on-azure-netapp-files/) and now we’re adding to the feature set to show [all that PostgreSQL on ANF](https://www.instaclustr.com/blog/managed-postgresql-on-azure-netapp-files/) has to offer. ANF Fast Forking allows you to create an exact clone of your database that you can read/write independently in just minutes.

### When would I use Fast Forking? 

When you need to move data to a new database fast, Instaclustr’s new feature is for you:

- Blue/green deployments
- Fast rollback option for database deployments
- Analytic workloads that you don’t want to run on the primary database
- Performance testing on real data

### How does ANF Fast Forking perform compared to the usual restore operation? 

In our test, we compared the performance of snapshot/backup creation and fork/restore on a single-node PostgreSQL cluster. The node size was PGS-PRD-Standard\_E8s\_v4-ANF-2048, and the database was loaded with 1TB of data.

The chart below shows the amount of time taken (in minutes) for each operation:

![](https://www.instaclustr.com/wp-content/uploads/Graph_Comparing_Time_Required_Between_Restore_and_ANF_Fast_Forking_Operations_2_28may24-1.png)

### Why is ANF so fast? 

ANF utilizes pointers to the data blocks on disk as part of its underlying volume virtualization technology. An ANF snapshot captures only these pointers, eliminating the need to copy the actual data blocks. For more information, read [How Azure NetApp Files snapshots work](https://learn.microsoft.com/en-us/azure/azure-netapp-files/snapshots-introduction).

### What are the limitations of ANF Fast Forking? 

ANF Fast Forking should not be used as a replacement for a backup. As the snapshots are located within the same storage, there is no redundancy in case of hardware failure at the cloud provider.

ANF Fast Forking can only replicate data from the exact timestamp of the snapshot. Point in time recovery (available when using standard backups) is not possible with Fast Forking.

### Can I use both ANF Fast Forking and backup restore? 

Absolutely!

PostgreSQL databases on ANF have daily backups like other PostgreSQL instances. You can choose to [create another backup](https://www.instaclustr.com/support/documentation/postgresql/postgresql-cluster-operations/backup/), [restore from a point in time](https://www.instaclustr.com/support/documentation/postgresql/postgresql-cluster-operations/restore/), or use the new ANF Fast Forking feature.

![](https://www.instaclustr.com/wp-content/uploads/ANFFF1.png)

*Restore an ANF-PostgreSQL cluster*

![](https://www.instaclustr.com/wp-content/uploads/ANFFF2.png)

*Forking the same ANF-PostgreSQL cluster*

### How do I start with ANF Fast Forking? 

Head over to our [documentation](https://www.instaclustr.com/support/documentation/postgresql/postgresql-cluster-operations/azure-netapp-files-fast-forking/) to learn how to get started, or [reach out](mailto:ng-instaclustr-sales@netapp.com) to one of our experts for more information.

 



 

 ![mail icon]()#### Get the latest articles for open sourceIn your inbox

 <a class="btn btn-primary btn-popup text-dark" href="">Sign up now</a> 

 

 

 

  ### Related content

 [ Zero Downtime Migration to Instaclustr 

 

 Yes, we can migrate existing Cassandra clusters to Instaclustr without any downtime. Here's what to expect from the process... 

 

 

 

 

 

 

 ](https://www.instaclustr.com/blog/zero-downtime-migration-to-instaclustr/) 

 [ Workflow Comparison: Uber Cadence vs Netflix Conductor 

 

 When choosing what’s right for your company’s opensource workflow needs it is important to know the difference and similarities ... 

 

 

 

 

 

 

 ](https://www.instaclustr.com/blog/workflow-comparison-uber-cadence-vs-netflix-conductor/) 

 [ Will Your Cassandra Database Project Succeed?: The New Stack 

 

 Open source Apache Cassandra® continues to stand out as an enterprise-proven solution for organizations seeking high availability... 

 

 

 

 

 

 

 ](https://www.instaclustr.com/blog/will-your-cassandra-database-project-succeed-the-new-stack/) 

 

  <a class="close-modal" href="">×</a>Sign upto ourNewsletter
-----------------------
