Skip to content

Commit ff9f4a2

Browse files
committed
DOCSP-51123: CC edits and cleanup
1 parent 184797a commit ff9f4a2

File tree

5 files changed

+49
-15
lines changed

5 files changed

+49
-15
lines changed

source/aggregation.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -389,13 +389,6 @@ learn more, see the :ref:`php-atlas-search` guide.
389389
You can perform similarity searches on vector embeddings by using the
390390
Atlas Vector Search feature. To learn more, see the :ref:`php-vector-search` guide.
391391

392-
.. TODO:
393-
Aggregation Tutorials
394-
~~~~~~~~~~~~~~~~~~~~~
395-
396-
.. To view step-by-step explanations of common aggregation tasks, see
397-
.. :ref:`php-aggregation-tutorials-landing`.
398-
399392
API Documentation
400393
~~~~~~~~~~~~~~~~~
401394

source/connect.txt

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,30 @@ connection to your MongoDB instance:
411411

412412
To learn more about the {+stable-api+}, see the :ref:`php-stable-api` guide.
413413

414-
.. TODO:
415-
Network Compression
416-
-------------------
414+
Network Compression
415+
-------------------
416+
417+
The following code shows how to specify the Snappy, Zlib, and Zstandard
418+
compression algorithms for a connection:
419+
420+
.. tabs::
421+
422+
.. tab:: MongoDB\\Client
423+
:tabid: Client
424+
425+
.. literalinclude:: /includes/usage-examples/connect-code-examples.php
426+
:language: php
427+
:dedent:
428+
:start-after: start-compression-client
429+
:end-before: end-compression-client
430+
431+
.. tab:: Connection URI
432+
:tabid: connectionstring
433+
434+
.. literalinclude:: /includes/usage-examples/connect-code-examples.php
435+
:language: php
436+
:dedent:
437+
:start-after: start-compression-uri
438+
:end-before: end-compression-uri
439+
440+
To learn more about network compression, see the :ref:`php-network-compression` guide.

source/get-started.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,8 @@ The connection string includes the hostname or IP address and
191191
port of your deployment, the authentication mechanism, user credentials
192192
when applicable, and connection options.
193193

194-
.. TODO:
195-
To connect to an instance or deployment not hosted on Atlas, see
196-
:ref:`php-connection-targets`.
194+
To connect to an instance or deployment not hosted on Atlas, see
195+
:ref:`php-connection-targets`.
197196

198197
.. procedure::
199198
:style: connected

source/includes/usage-examples/connect-code-examples.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,19 @@
175175
$driverOptions,
176176
);
177177
// end-stable-api
178+
179+
// Connects to a MongoDB deployment and compresses network traffic
180+
// using client options
181+
// start-compression-client
182+
$client = new MongoDB\Client(
183+
'mongodb://<hostname>:<port>',
184+
['compressors' => 'snappy,zstd,zlib'],
185+
);
186+
// end-compression-client
187+
188+
// Connects to a MongoDB deployment and compresses network traffic
189+
// using connection URI parameters
190+
// start-compression-uri
191+
$uri = 'mongodb://<hostname>:<port>/?compressors=snappy,zstd,zlib';
192+
$client = new MongoDB\Client($uri);
193+
// end-compression-uri

source/monitoring-logging/monitoring.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ events to track your application's performance and resource use.
3232
The {+php-library+} emits command events and Server Discovery and Monitoring (SDAM)
3333
events that provide application information. You can listen for these events to
3434
monitor your application.
35+
36+
.. note::
3537

36-
.. TODO: This page explains how to monitor your application in code. To learn how to
37-
record this information to an external log, see the :ref:`php-logging` guide.
38+
This page explains how to monitor your application in code. To learn how to
39+
record this information to an external log, see the :ref:`php-logging` guide.
3840

3941
Event Types
4042
-----------

0 commit comments

Comments
 (0)